home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / cisco / access_control.tar < prev    next >
Tape Archive  |  1992-08-07  |  128.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file BLURB, mode 600 , uid 1311 , gid 416 , size 2604 , seconds 5035700342 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% dexmagic PrintFox/Pagefox WEAK default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 42 4c 55 52 42 00 00 00 | 00 00 00 00 00 00 00 00 |BLURB...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 31 33 |.... 6|00 . 13|
|00000070| 31 31 20 00 20 20 20 34 | 31 36 20 00 20 20 20 20 |11 . 4|16 . |
|00000080| 20 20 20 32 36 30 34 20 | 20 35 30 33 35 37 30 30 | 2604 | 5035700|
|00000090| 33 34 32 20 20 20 34 37 | 32 37 00 20 00 00 00 00 |342 47|27. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 40 28 23 29 20 42 4c 55 | 52 42 20 31 2e 33 20 39 |@(#) BLU|RB 1.3 9|
|00000210| 31 2f 30 35 2f 32 30 20 | 31 33 3a 32 38 3a 31 30 |1/05/20 |13:28:10|
|00000220| 0a 0a 54 68 69 73 20 70 | 61 63 6b 61 67 65 20 70 |..This p|ackage p|
|00000230| 72 6f 76 69 64 65 73 20 | 61 20 63 6f 75 70 6c 65 |rovides |a couple|
|00000240| 20 6f 66 20 74 69 6e 79 | 20 70 72 6f 67 72 61 6d | of tiny| program|
|00000250| 73 20 74 68 61 74 20 6c | 6f 67 20 61 6c 6c 20 72 |s that l|og all r|
|00000260| 65 71 75 65 73 74 73 0a | 74 6f 20 63 6f 6e 6e 65 |equests.|to conne|
|00000270| 63 74 69 6f 6e 2d 6f 72 | 69 65 6e 74 65 64 20 74 |ction-or|iented t|
|00000280| 63 70 2f 69 70 20 73 65 | 72 76 69 63 65 73 20 28 |cp/ip se|rvices (|
|00000290| 65 78 61 6d 70 6c 65 73 | 3a 20 46 49 4e 47 45 52 |examples|: FINGER|
|000002a0| 2c 20 53 59 53 54 41 54 | 2c 20 46 54 50 2c 0a 54 |, SYSTAT|, FTP,.T|
|000002b0| 45 4c 4e 45 54 2c 20 52 | 4c 4f 47 49 4e 2c 20 52 |ELNET, R|LOGIN, R|
|000002c0| 53 48 2c 20 45 58 45 43 | 29 2c 20 77 69 74 68 20 |SH, EXEC|), with |
|000002d0| 6f 70 74 69 6f 6e 61 6c | 20 61 63 63 65 73 73 20 |optional| access |
|000002e0| 63 6f 6e 74 72 6f 6c 20 | 6f 6e 20 74 68 65 20 62 |control |on the b|
|000002f0| 61 73 69 73 0a 6f 66 20 | 68 6f 73 74 20 28 6f 72 |asis.of |host (or|
|00000300| 20 64 6f 6d 61 69 6e 29 | 20 6e 61 6d 65 73 2c 20 | domain)| names, |
|00000310| 69 6e 74 65 72 6e 65 74 | 20 61 64 64 72 65 73 73 |internet| address|
|00000320| 65 73 20 28 6f 72 20 6e | 65 74 77 6f 72 6b 20 6e |es (or n|etwork n|
|00000330| 75 6d 62 65 72 73 29 20 | 61 6e 64 0a 64 61 65 6d |umbers) |and.daem|
|00000340| 6f 6e 20 70 72 6f 63 65 | 73 73 20 6e 61 6d 65 73 |on proce|ss names|
|00000350| 2e 0a 0a 54 68 65 20 70 | 72 6f 67 72 61 6d 73 20 |...The p|rograms |
|00000360| 61 72 65 20 6e 6f 74 68 | 69 6e 67 20 62 75 74 20 |are noth|ing but |
|00000370| 73 6d 61 6c 6c 20 66 72 | 6f 6e 74 20 65 6e 64 73 |small fr|ont ends|
|00000380| 2e 20 42 79 20 64 65 66 | 61 75 6c 74 2c 20 74 68 |. By def|ault, th|
|00000390| 65 79 20 6a 75 73 74 0a | 6c 6f 67 20 74 68 65 20 |ey just.|log the |
|000003a0| 72 65 6d 6f 74 65 20 68 | 6f 73 74 20 6e 61 6d 65 |remote h|ost name|
|000003b0| 20 61 6e 64 20 74 68 65 | 6e 20 69 6e 76 6f 6b 65 | and the|n invoke|
|000003c0| 20 74 68 65 20 72 65 61 | 6c 20 64 61 65 6d 6f 6e | the rea|l daemon|
|000003d0| 2e 20 54 68 65 20 70 72 | 6f 67 72 61 6d 73 0a 73 |. The pr|ograms.s|
|000003e0| 68 6f 75 6c 64 20 6e 6f | 74 20 72 65 71 75 69 72 |hould no|t requir|
|000003f0| 65 20 61 6e 79 20 63 68 | 61 6e 67 65 73 20 74 6f |e any ch|anges to|
|00000400| 20 65 78 69 73 74 69 6e | 67 20 73 6f 66 74 77 61 | existin|g softwa|
|00000410| 72 65 20 6f 72 20 63 6f | 6e 66 69 67 75 72 61 74 |re or co|nfigurat|
|00000420| 69 6f 6e 0a 66 69 6c 65 | 73 2e 0a 0a 43 6f 6e 6e |ion.file|s...Conn|
|00000430| 65 63 74 69 6f 6e 73 20 | 61 72 65 20 72 65 70 6f |ections |are repo|
|00000440| 72 74 65 64 20 74 68 72 | 6f 75 67 68 20 74 68 65 |rted thr|ough the|
|00000450| 20 73 79 73 6c 6f 67 28 | 33 29 20 66 61 63 69 6c | syslog(|3) facil|
|00000460| 69 74 79 2e 20 45 61 63 | 68 20 72 65 63 6f 72 64 |ity. Eac|h record|
|00000470| 0a 63 6f 6e 74 61 69 6e | 73 20 61 20 74 69 6d 65 |.contain|s a time|
|00000480| 20 73 74 61 6d 70 2c 20 | 74 68 65 20 72 65 6d 6f | stamp, |the remo|
|00000490| 74 65 20 68 6f 73 74 20 | 6e 61 6d 65 20 61 6e 64 |te host |name and|
|000004a0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|000004b0| 20 73 65 72 76 69 63 65 | 0a 72 65 71 75 65 73 74 | service|.request|
|000004c0| 65 64 2e 20 53 75 63 68 | 20 69 6e 66 6f 72 6d 61 |ed. Such| informa|
|000004d0| 74 69 6f 6e 20 63 61 6e | 20 62 65 20 75 73 65 66 |tion can| be usef|
|000004e0| 75 6c 20 74 6f 20 64 65 | 74 65 63 74 20 62 72 65 |ul to de|tect bre|
|000004f0| 61 6b 2d 69 6e 20 61 74 | 74 65 6d 70 74 73 0a 6f |ak-in at|tempts.o|
|00000500| 72 20 6f 74 68 65 72 20 | 75 6e 64 65 73 69 72 61 |r other |undesira|
|00000510| 62 6c 65 20 61 63 74 69 | 76 69 74 69 65 73 2c 20 |ble acti|vities, |
|00000520| 65 73 70 65 63 69 61 6c | 6c 79 20 77 68 65 6e 20 |especial|ly when |
|00000530| 6c 6f 67 66 69 6c 65 20 | 69 6e 66 6f 72 6d 61 74 |logfile |informat|
|00000540| 69 6f 6e 0a 66 72 6f 6d | 20 73 65 76 65 72 61 6c |ion.from| several|
|00000550| 20 68 6f 73 74 73 20 69 | 73 20 6d 65 72 67 65 64 | hosts i|s merged|
|00000560| 2e 0a 0a 54 68 65 20 6f | 70 74 69 6f 6e 61 6c 20 |...The o|ptional |
|00000570| 61 63 63 65 73 73 2d 63 | 6f 6e 74 72 6f 6c 20 66 |access-c|ontrol f|
|00000580| 61 63 69 6c 69 74 79 20 | 6d 61 79 20 62 65 20 75 |acility |may be u|
|00000590| 73 65 66 75 6c 20 77 68 | 65 6e 2c 20 66 6f 72 20 |seful wh|en, for |
|000005a0| 77 68 61 74 65 76 65 72 | 0a 72 65 61 73 6f 6e 2c |whatever|.reason,|
|000005b0| 20 69 74 20 69 73 20 6e | 6f 74 20 70 6f 73 73 69 | it is n|ot possi|
|000005c0| 62 6c 65 20 74 6f 20 68 | 61 6e 64 6c 65 20 61 63 |ble to h|andle ac|
|000005d0| 63 65 73 73 20 63 6f 6e | 74 72 6f 6c 20 61 74 20 |cess con|trol at |
|000005e0| 61 20 6d 6f 72 65 20 73 | 75 69 74 61 62 6c 65 0a |a more s|uitable.|
|000005f0| 6c 65 76 65 6c 20 28 73 | 75 63 68 20 61 73 20 61 |level (s|uch as a|
|00000600| 6e 20 69 6e 74 65 72 6e | 65 74 20 72 6f 75 74 65 |n intern|et route|
|00000610| 72 29 2e 0a 0a 45 6e 68 | 61 6e 63 65 6d 65 6e 74 |r)...Enh|ancement|
|00000620| 73 20 6f 76 65 72 20 74 | 68 65 20 70 72 65 76 69 |s over t|he previ|
|00000630| 6f 75 73 20 72 65 6c 65 | 61 73 65 20 61 72 65 3a |ous rele|ase are:|
|00000640| 20 70 72 6f 74 65 63 74 | 69 6f 6e 20 61 67 61 69 | protect|ion agai|
|00000650| 6e 73 74 20 72 6c 6f 67 | 69 6e 0a 61 6e 64 20 72 |nst rlog|in.and r|
|00000660| 73 68 20 61 74 74 61 63 | 6b 73 20 74 68 72 6f 75 |sh attac|ks throu|
|00000670| 67 68 20 63 6f 6d 70 72 | 6f 6d 69 73 65 64 20 64 |gh compr|omised d|
|00000680| 6f 6d 61 69 6e 20 6e 61 | 6d 65 20 73 65 72 76 65 |omain na|me serve|
|00000690| 72 73 2c 20 6f 70 74 69 | 6f 6e 61 6c 0a 6e 65 74 |rs, opti|onal.net|
|000006a0| 67 72 6f 75 70 20 73 75 | 70 70 6f 72 74 20 66 6f |group su|pport fo|
|000006b0| 72 20 73 79 73 74 65 6d | 73 20 77 69 74 68 20 4e |r system|s with N|
|000006c0| 49 53 20 28 66 6f 72 6d | 65 72 6c 79 20 59 50 29 |IS (form|erly YP)|
|000006d0| 2c 20 61 6e 64 20 61 6e | 20 65 78 74 65 6e 73 69 |, and an| extensi|
|000006e0| 6f 6e 0a 6f 66 20 74 68 | 65 20 77 69 6c 64 20 63 |on.of th|e wild c|
|000006f0| 61 72 64 20 70 61 74 74 | 65 72 6e 73 20 73 75 70 |ard patt|erns sup|
|00000700| 70 6f 72 74 65 64 20 62 | 79 20 74 68 65 20 61 63 |ported b|y the ac|
|00000710| 63 65 73 73 20 63 6f 6e | 74 72 6f 6c 20 66 69 6c |cess con|trol fil|
|00000720| 65 73 2e 0a 0a 09 57 69 | 65 74 73 65 20 56 65 6e |es....Wi|etse Ven|
|00000730| 65 6d 61 20 28 77 69 65 | 74 73 65 40 77 7a 76 2e |ema (wie|tse@wzv.|
|00000740| 77 69 6e 2e 74 75 65 2e | 6e 6c 29 2c 0a 09 45 69 |win.tue.|nl),..Ei|
|00000750| 6e 64 68 6f 76 65 6e 20 | 55 6e 69 76 65 72 73 69 |ndhoven |Universi|
|00000760| 74 79 20 6f 66 20 54 65 | 63 68 6e 6f 6c 6f 67 79 |ty of Te|chnology|
|00000770| 2c 0a 09 54 68 65 20 4e | 65 74 68 65 72 6c 61 6e |,..The N|etherlan|
|00000780| 64 73 2e 0a 00 18 00 0b | 64 65 61 64 2e 6c 65 74 |ds......|dead.let|
|00000790| 74 65 72 00 00 00 04 a0 | 00 00 49 e5 00 14 00 06 |ter.....|..I.....|
|000007a0| 74 63 70 66 2e 63 00 70 | 00 00 04 b0 00 00 48 14 |tcpf.c.p|......H.|
|000007b0| 00 14 00 05 77 68 69 63 | 68 00 04 80 00 00 04 c8 |....whic|h.......|
|000007c0| 00 00 48 17 00 1c 00 0c | 78 72 6f 62 6f 74 73 63 |..H.....|xrobotsc|
|000007d0| 6f 72 65 73 00 14 00 04 | 00 00 04 d4 00 01 0f de |ores....|........|
|000007e0| 00 10 00 03 67 69 66 00 | 00 00 04 ec 00 00 49 9e |....gif.|......I.|
|000007f0| 00 18 00 08 2e 66 6f 72 | 77 61 72 64 00 14 00 04 |.....for|ward....|
|00000800| 4d 61 6b 65 66 69 6c 65 | 00 00 00 00 00 00 00 00 |Makefile|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 31 33 |.... 6|00 . 13|
|00000870| 31 31 20 00 20 20 20 34 | 31 36 20 00 20 20 20 20 |11 . 4|16 . |
|00000880| 20 20 20 32 37 30 31 20 | 20 35 30 33 35 37 31 32 | 2701 | 5035712|
|00000890| 32 36 34 20 20 20 35 36 | 30 32 00 20 00 00 00 00 |264 56|02. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 23 20 40 28 23 29 20 4d | 61 6b 65 66 69 6c 65 20 |# @(#) M|akefile |
|00000a10| 31 2e 32 20 39 31 2f 30 | 35 2f 32 30 20 31 33 3a |1.2 91/0|5/20 13:|
|00000a20| 32 38 3a 30 36 0a 0a 23 | 23 20 42 65 67 69 6e 20 |28:06..#|# Begin |
|00000a30| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 6f 70 |configur|ation op|
|00000a40| 74 69 6f 6e 73 0a 0a 23 | 20 49 66 20 79 6f 75 20 |tions..#| If you |
|00000a50| 77 61 6e 74 20 74 6f 20 | 65 6e 61 62 6c 65 20 68 |want to |enable h|
|00000a60| 6f 73 74 20 61 63 63 65 | 73 73 20 63 6f 6e 74 72 |ost acce|ss contr|
|00000a70| 6f 6c 2c 20 64 65 66 69 | 6e 65 20 74 68 65 20 48 |ol, defi|ne the H|
|00000a80| 4f 53 54 5f 41 43 43 45 | 53 53 20 6d 61 63 72 6f |OST_ACCE|SS macro|
|00000a90| 0a 23 20 69 6e 20 74 68 | 65 20 20 43 46 4c 41 47 |.# in th|e CFLAG|
|00000aa0| 53 20 6c 69 6e 65 2e 20 | 46 6f 72 20 65 78 61 6d |S line. |For exam|
|00000ab0| 70 6c 65 2c 0a 23 0a 23 | 20 43 46 4c 41 47 53 20 |ple,.#.#| CFLAGS |
|00000ac0| 3d 20 2d 4f 20 2d 44 48 | 4f 53 54 53 5f 41 43 43 |= -O -DH|OSTS_ACC|
|00000ad0| 45 53 53 20 0a 23 0a 23 | 20 4e 6f 74 65 3a 20 68 |ESS .#.#| Note: h|
|00000ae0| 6f 73 74 20 61 63 63 65 | 73 73 20 63 6f 6e 74 72 |ost acce|ss contr|
|00000af0| 6f 6c 20 72 65 71 75 69 | 72 65 73 20 74 68 65 20 |ol requi|res the |
|00000b00| 73 74 72 74 6f 6b 28 29 | 20 61 6e 64 20 73 74 72 |strtok()| and str|
|00000b10| 63 68 72 28 29 20 72 6f | 75 74 69 6e 65 73 2e 0a |chr() ro|utines..|
|00000b20| 23 0a 23 20 49 66 20 79 | 6f 75 72 20 6c 69 62 72 |#.# If y|our libr|
|00000b30| 61 72 79 20 73 75 70 70 | 6f 72 74 73 20 4e 49 53 |ary supp|orts NIS|
|00000b40| 2d 73 74 79 6c 65 20 6e | 65 74 67 72 6f 75 70 73 |-style n|etgroups|
|00000b50| 2c 20 63 6f 6d 70 69 6c | 65 20 77 69 74 68 20 2d |, compil|e with -|
|00000b60| 44 4e 45 54 47 52 4f 55 | 50 0a 23 0a 23 20 49 66 |DNETGROU|P.#.# If|
|00000b70| 20 79 6f 75 72 20 43 20 | 6c 69 62 72 61 72 79 20 | your C |library |
|00000b80| 64 6f 65 73 20 6e 6f 74 | 20 68 61 76 65 20 6d 65 |does not| have me|
|00000b90| 6d 63 6d 70 28 33 29 2c | 20 63 6f 6d 70 69 6c 65 |mcmp(3),| compile|
|00000ba0| 20 77 69 74 68 20 2d 44 | 6d 65 6d 63 6d 70 3d 62 | with -D|memcmp=b|
|00000bb0| 63 6d 70 2e 0a 23 0a 23 | 20 43 6f 6d 70 69 6c 65 |cmp..#.#| Compile|
|00000bc0| 20 77 69 74 68 20 2d 44 | 50 41 52 41 4e 4f 49 44 | with -D|PARANOID|
|00000bd0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|00000be0| 72 65 66 75 73 65 20 63 | 6f 6e 6e 65 63 74 69 6f |refuse c|onnectio|
|00000bf0| 6e 73 20 66 72 6f 6d 20 | 68 6f 73 74 73 0a 23 20 |ns from |hosts.# |
|00000c00| 77 69 74 68 20 6e 61 6d | 65 73 20 74 68 61 74 20 |with nam|es that |
|00000c10| 64 6f 20 6e 6f 74 20 6d | 61 74 63 68 20 74 68 65 |do not m|atch the|
|00000c20| 69 72 20 61 64 64 72 65 | 73 73 2e 0a 0a 43 46 4c |ir addre|ss...CFL|
|00000c30| 41 47 53 09 3d 20 2d 4f | 20 2d 44 48 4f 53 54 53 |AGS.= -O| -DHOSTS|
|00000c40| 5f 41 43 43 45 53 53 20 | 2d 44 4e 45 54 47 52 4f |_ACCESS |-DNETGRO|
|00000c50| 55 50 20 2d 44 50 41 52 | 41 4e 4f 49 44 0a 0a 23 |UP -DPAR|ANOID..#|
|00000c60| 20 49 6e 63 6c 75 64 65 | 20 74 68 65 20 66 69 6c | Include| the fil|
|00000c70| 65 20 73 74 72 63 61 73 | 65 63 6d 70 2e 6f 20 69 |e strcas|ecmp.o i|
|00000c80| 66 20 69 74 20 69 73 20 | 6e 6f 74 20 70 72 6f 76 |f it is |not prov|
|00000c90| 69 64 65 64 20 62 79 20 | 79 6f 75 72 20 43 20 6c |ided by |your C l|
|00000ca0| 69 62 72 61 72 79 2e 0a | 0a 41 55 58 5f 4f 42 4a |ibrary..|.AUX_OBJ|
|00000cb0| 09 3d 20 23 20 73 74 72 | 63 61 73 65 63 6d 70 2e |.= # str|casecmp.|
|00000cc0| 6f 0a 0a 23 20 53 6f 6d | 65 20 53 79 73 74 65 6d |o..# Som|e System|
|00000cd0| 2d 56 20 76 65 72 73 69 | 6f 6e 73 20 72 65 71 75 |-V versi|ons requ|
|00000ce0| 69 72 65 20 74 68 61 74 | 20 79 6f 75 20 65 78 70 |ire that| you exp|
|00000cf0| 6c 69 63 69 74 6c 79 20 | 73 70 65 63 69 66 79 20 |licitly |specify |
|00000d00| 74 68 65 20 6e 65 74 77 | 6f 72 6b 69 6e 67 0a 23 |the netw|orking.#|
|00000d10| 20 6c 69 62 72 61 72 69 | 65 73 2e 0a 0a 4c 49 42 | librari|es...LIB|
|00000d20| 53 09 3d 0a 0a 23 23 20 | 45 6e 64 20 63 6f 6e 66 |S.=..## |End conf|
|00000d30| 69 67 75 72 61 74 69 6f | 6e 20 6f 70 74 69 6f 6e |iguratio|n option|
|00000d40| 73 0a 0a 54 43 50 44 5f | 4f 42 4a 3d 20 74 63 70 |s..TCPD_|OBJ= tcp|
|00000d50| 64 2e 6f 20 66 72 6f 6d | 68 6f 73 74 2e 6f 20 68 |d.o from|host.o h|
|00000d60| 6f 73 74 73 5f 61 63 63 | 65 73 73 2e 6f 0a 4d 49 |osts_acc|ess.o.MI|
|00000d70| 53 43 5f 4f 42 4a 3d 20 | 6d 69 73 63 64 2e 6f 20 |SC_OBJ= |miscd.o |
|00000d80| 66 72 6f 6d 68 6f 73 74 | 2e 6f 20 68 6f 73 74 73 |fromhost|.o hosts|
|00000d90| 5f 61 63 63 65 73 73 2e | 6f 0a 0a 61 6c 6c 3a 09 |_access.|o..all:.|
|00000da0| 74 63 70 64 20 6d 69 73 | 63 64 0a 0a 74 63 70 64 |tcpd mis|cd..tcpd|
|00000db0| 3a 09 24 28 54 43 50 44 | 5f 4f 42 4a 29 20 24 28 |:.$(TCPD|_OBJ) $(|
|00000dc0| 41 55 58 5f 4f 42 4a 29 | 0a 09 24 28 43 43 29 20 |AUX_OBJ)|..$(CC) |
|00000dd0| 24 28 43 46 4c 41 47 53 | 29 20 2d 6f 20 24 40 20 |$(CFLAGS|) -o $@ |
|00000de0| 24 28 54 43 50 44 5f 4f | 42 4a 29 20 24 28 41 55 |$(TCPD_O|BJ) $(AU|
|00000df0| 58 5f 4f 42 4a 29 20 24 | 28 4c 49 42 53 29 0a 0a |X_OBJ) $|(LIBS)..|
|00000e00| 6d 69 73 63 64 3a 09 24 | 28 4d 49 53 43 5f 4f 42 |miscd:.$|(MISC_OB|
|00000e10| 4a 29 20 24 28 41 55 58 | 5f 4f 42 4a 29 0a 09 24 |J) $(AUX|_OBJ)..$|
|00000e20| 28 43 43 29 20 24 28 43 | 46 4c 41 47 53 29 20 2d |(CC) $(C|FLAGS) -|
|00000e30| 6f 20 24 40 20 24 28 4d | 49 53 43 5f 4f 42 4a 29 |o $@ $(M|ISC_OBJ)|
|00000e40| 20 24 28 41 55 58 5f 4f | 42 4a 29 20 24 28 4c 49 | $(AUX_O|BJ) $(LI|
|00000e50| 42 53 29 0a 0a 73 68 61 | 72 3a 09 0a 09 40 73 68 |BS)..sha|r:...@sh|
|00000e60| 61 72 20 52 45 41 44 4d | 45 20 6d 69 73 63 64 2e |ar READM|E miscd.|
|00000e70| 63 20 74 63 70 64 2e 63 | 20 66 72 6f 6d 68 6f 73 |c tcpd.c| fromhos|
|00000e80| 74 2e 63 20 68 6f 73 74 | 73 5f 61 63 63 65 73 73 |t.c host|s_access|
|00000e90| 2e 63 20 4d 61 6b 65 66 | 69 6c 65 20 5c 0a 09 68 |.c Makef|ile \..h|
|00000ea0| 6f 73 74 73 5f 61 63 63 | 65 73 73 2e 35 20 73 74 |osts_acc|ess.5 st|
|00000eb0| 72 63 61 73 65 63 6d 70 | 2e 63 20 42 4c 55 52 42 |rcasecmp|.c BLURB|
|00000ec0| 0a 0a 61 72 63 68 69 76 | 65 3a 0a 09 24 28 41 52 |..archiv|e:..$(AR|
|00000ed0| 43 48 49 56 45 29 20 52 | 45 41 44 4d 45 20 6d 69 |CHIVE) R|EADME mi|
|00000ee0| 73 63 64 2e 63 20 74 63 | 70 64 2e 63 20 66 72 6f |scd.c tc|pd.c fro|
|00000ef0| 6d 68 6f 73 74 2e 63 20 | 68 6f 73 74 73 5f 61 63 |mhost.c |hosts_ac|
|00000f00| 63 65 73 73 2e 63 20 4d | 61 6b 65 66 69 6c 65 20 |cess.c M|akefile |
|00000f10| 5c 0a 09 68 6f 73 74 73 | 5f 61 63 63 65 73 73 2e |\..hosts|_access.|
|00000f20| 35 20 73 74 72 63 61 73 | 65 63 6d 70 2e 63 20 42 |5 strcas|ecmp.c B|
|00000f30| 4c 55 52 42 0a 0a 63 6c | 65 61 6e 3a 0a 09 72 6d |LURB..cl|ean:..rm|
|00000f40| 20 2d 66 20 2a 2e 6f 20 | 63 6f 72 65 0a 0a 6c 69 | -f *.o |core..li|
|00000f50| 6e 74 3a 0a 09 6c 69 6e | 74 20 2d 44 48 4f 53 54 |nt:..lin|t -DHOST|
|00000f60| 53 5f 41 43 43 45 53 53 | 20 74 63 70 64 2e 63 20 |S_ACCESS| tcpd.c |
|00000f70| 66 72 6f 6d 68 6f 73 74 | 2e 63 20 68 6f 73 74 73 |fromhost|.c hosts|
|00000f80| 5f 61 63 63 65 73 73 2e | 63 0a 09 6c 69 6e 74 20 |_access.|c..lint |
|00000f90| 2d 44 48 4f 53 54 53 5f | 41 43 43 45 53 53 20 6d |-DHOSTS_|ACCESS m|
|00000fa0| 69 73 63 64 2e 63 20 66 | 72 6f 6d 68 6f 73 74 2e |iscd.c f|romhost.|
|00000fb0| 63 20 68 6f 73 74 73 5f | 61 63 63 65 73 73 2e 63 |c hosts_|access.c|
|00000fc0| 0a 00 48 17 00 1c 00 0c | 78 72 6f 62 6f 74 73 63 |..H.....|xrobotsc|
|00000fd0| 6f 72 65 73 00 14 00 04 | 00 00 04 d4 00 01 0f de |ores....|........|
|00000fe0| 00 10 00 03 67 69 66 00 | 00 00 04 ec 00 00 49 9e |....gif.|......I.|
|00000ff0| 00 18 00 08 2e 66 6f 72 | 77 61 72 64 00 14 00 04 |.....for|ward....|
|00001000| 52 45 41 44 4d 45 00 00 | 00 00 00 00 00 00 00 00 |README..|........|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 31 33 |.... 6|00 . 13|
|00001070| 31 31 20 00 20 20 20 34 | 31 36 20 00 20 20 20 20 |11 . 4|16 . |
|00001080| 20 20 32 30 35 35 31 20 | 20 35 30 33 35 37 30 30 | 20551 | 5035700|
|00001090| 33 33 36 20 20 20 35 30 | 34 32 00 20 00 00 00 00 |336 50|42. ....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 40 28 23 29 20 52 45 41 | 44 4d 45 20 31 2e 34 20 |@(#) REA|DME 1.4 |
|00001210| 39 31 2f 30 35 2f 32 30 | 20 31 33 3a 33 30 3a 31 |91/05/20| 13:30:1|
|00001220| 37 0a 0a 47 65 6e 65 72 | 61 6c 20 64 65 73 63 72 |7..Gener|al descr|
|00001230| 69 70 74 69 6f 6e 3a 0a | 2d 2d 2d 2d 2d 2d 2d 2d |iption:.|--------|
|00001240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 0a 57 69 |--------|----..Wi|
|00001250| 74 68 20 74 68 69 73 20 | 70 61 63 6b 61 67 65 20 |th this |package |
|00001260| 79 6f 75 20 63 61 6e 20 | 6d 6f 6e 69 74 6f 72 20 |you can |monitor |
|00001270| 63 6f 6e 6e 65 63 74 69 | 6f 6e 73 20 74 6f 20 74 |connecti|ons to t|
|00001280| 68 65 20 53 59 53 54 41 | 54 2c 20 46 49 4e 47 45 |he SYSTA|T, FINGE|
|00001290| 52 2c 0a 46 54 50 2c 20 | 54 45 4c 4e 45 54 2c 20 |R,.FTP, |TELNET, |
|000012a0| 52 4c 4f 47 49 4e 2c 20 | 52 53 48 20 61 6e 64 20 |RLOGIN, |RSH and |
|000012b0| 45 58 45 43 20 6e 65 74 | 77 6f 72 6b 20 73 65 72 |EXEC net|work ser|
|000012c0| 76 69 63 65 73 2e 20 20 | 43 6f 6e 6e 65 63 74 69 |vices. |Connecti|
|000012d0| 6f 6e 73 20 61 72 65 0a | 6c 6f 67 67 65 64 20 74 |ons are.|logged t|
|000012e0| 68 72 6f 75 67 68 20 74 | 68 65 20 73 79 73 6c 6f |hrough t|he syslo|
|000012f0| 67 28 33 29 20 66 61 63 | 69 6c 69 74 79 2e 20 41 |g(3) fac|ility. A|
|00001300| 20 72 65 71 75 69 72 65 | 6d 65 6e 74 20 69 73 20 | require|ment is |
|00001310| 74 68 61 74 20 64 61 65 | 6d 6f 6e 73 0a 61 72 65 |that dae|mons.are|
|00001320| 20 73 74 61 72 74 65 64 | 20 62 79 20 74 68 65 20 | started| by the |
|00001330| 69 6e 65 74 64 20 70 72 | 6f 67 72 61 6d 20 6f 72 |inetd pr|ogram or|
|00001340| 20 73 6f 6d 65 74 68 69 | 6e 67 20 73 69 6d 69 6c | somethi|ng simil|
|00001350| 61 72 2e 0a 0a 54 68 65 | 20 70 72 6f 67 72 61 6d |ar...The| program|
|00001360| 73 20 61 72 65 20 74 69 | 6e 79 20 66 72 6f 6e 74 |s are ti|ny front|
|00001370| 20 65 6e 64 73 20 74 68 | 61 74 20 6a 75 73 74 20 | ends th|at just |
|00001380| 72 65 70 6f 72 74 20 74 | 68 65 20 72 65 6d 6f 74 |report t|he remot|
|00001390| 65 20 68 6f 73 74 20 6e | 61 6d 65 0a 61 6e 64 20 |e host n|ame.and |
|000013a0| 74 68 65 6e 20 69 6e 76 | 6f 6b 65 20 74 68 65 20 |then inv|oke the |
|000013b0| 72 65 61 6c 20 6e 65 74 | 77 6f 72 6b 20 64 61 65 |real net|work dae|
|000013c0| 6d 6f 6e 2e 20 20 49 6e | 20 74 68 65 20 6d 6f 73 |mon. In| the mos|
|000013d0| 74 20 63 6f 6d 6d 6f 6e | 20 63 61 73 65 2c 20 6e |t common| case, n|
|000013e0| 6f 0a 63 68 61 6e 67 65 | 73 20 73 68 6f 75 6c 64 |o.change|s should|
|000013f0| 20 62 65 20 72 65 71 75 | 69 72 65 64 20 74 6f 20 | be requ|ired to |
|00001400| 65 78 69 73 74 69 6e 67 | 20 73 6f 66 74 77 61 72 |existing| softwar|
|00001410| 65 20 6f 72 20 74 6f 20 | 63 6f 6e 66 69 67 75 72 |e or to |configur|
|00001420| 61 74 69 6f 6e 0a 66 69 | 6c 65 73 2e 20 20 4a 75 |ation.fi|les. Ju|
|00001430| 73 74 20 6d 6f 76 65 20 | 74 68 65 20 76 65 6e 64 |st move |the vend|
|00001440| 6f 72 2d 70 72 6f 76 69 | 64 65 64 20 64 61 65 6d |or-provi|ded daem|
|00001450| 6f 6e 73 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 70 |ons to a|nother p|
|00001460| 6c 61 63 65 20 61 6e 64 | 0a 69 6e 73 74 61 6c 6c |lace and|.install|
|00001470| 20 74 68 65 20 66 72 6f | 6e 74 20 65 6e 64 73 20 | the fro|nt ends |
|00001480| 69 6e 74 6f 20 74 68 65 | 69 72 20 6f 72 69 67 69 |into the|ir origi|
|00001490| 6e 61 6c 20 70 6c 61 63 | 65 73 2e 20 49 6e 73 74 |nal plac|es. Inst|
|000014a0| 61 6c 6c 61 74 69 6f 6e | 20 64 65 74 61 69 6c 73 |allation| details|
|000014b0| 0a 61 72 65 20 67 69 76 | 65 6e 20 62 65 6c 6f 77 |.are giv|en below|
|000014c0| 2e 0a 0a 45 61 72 6c 79 | 20 76 65 72 73 69 6f 6e |...Early| version|
|000014d0| 73 20 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |s of the| program|
|000014e0| 73 20 77 65 72 65 20 74 | 65 73 74 65 64 20 77 69 |s were t|ested wi|
|000014f0| 74 68 20 55 6c 74 72 69 | 78 20 3e 3d 20 32 2e 32 |th Ultri|x >= 2.2|
|00001500| 2c 20 77 69 74 68 0a 53 | 75 6e 4f 53 20 3e 3d 20 |, with.S|unOS >= |
|00001510| 33 2e 34 20 61 6e 64 20 | 49 53 43 20 32 2e 32 2e |3.4 and |ISC 2.2.|
|00001520| 20 54 68 65 20 66 69 72 | 73 74 20 6f 66 66 69 63 | The fir|st offic|
|00001530| 69 61 6c 20 72 65 6c 65 | 61 73 65 20 68 61 73 20 |ial rele|ase has |
|00001540| 62 65 65 6e 20 69 6e 73 | 74 61 6c 6c 65 64 0a 6f |been ins|talled.o|
|00001550| 6e 20 61 20 77 69 64 65 | 20 76 61 72 69 65 74 79 |n a wide| variety|
|00001560| 20 6f 66 20 73 79 73 74 | 65 6d 73 20 28 42 53 44 | of syst|ems (BSD|
|00001570| 2c 20 53 59 53 56 2c 20 | 41 70 6f 6c 6c 6f 29 20 |, SYSV, |Apollo) |
|00001580| 77 69 74 68 6f 75 74 20 | 6d 6f 64 69 66 69 63 61 |without |modifica|
|00001590| 74 69 6f 6e 2e 0a 54 68 | 65 20 70 72 65 73 65 6e |tion..Th|e presen|
|000015a0| 74 20 72 65 6c 65 61 73 | 65 20 73 68 6f 75 6c 64 |t releas|e should|
|000015b0| 20 73 74 69 6c 6c 20 72 | 75 6e 20 6f 6e 20 74 6f | still r|un on to|
|000015c0| 70 20 6f 66 20 6d 6f 73 | 74 20 42 53 44 2d 73 74 |p of mos|t BSD-st|
|000015d0| 79 6c 65 20 54 43 50 2f | 49 50 0a 69 6d 70 6c 65 |yle TCP/|IP.imple|
|000015e0| 6d 65 6e 74 61 74 69 6f | 6e 73 2e 0a 0a 4f 70 74 |mentatio|ns...Opt|
|000015f0| 69 6f 6e 61 6c 20 66 65 | 61 74 75 72 65 3a 0a 2d |ional fe|ature:.-|
|00001600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001610| 0a 0a 57 68 65 6e 20 63 | 6f 6d 70 69 6c 65 64 20 |..When c|ompiled |
|00001620| 77 69 74 68 20 2d 44 48 | 4f 53 54 53 5f 41 43 43 |with -DH|OSTS_ACC|
|00001630| 45 53 53 2c 20 74 68 65 | 20 66 72 6f 6e 74 2d 65 |ESS, the| front-e|
|00001640| 6e 64 20 70 72 6f 67 72 | 61 6d 73 20 73 75 70 70 |nd progr|ams supp|
|00001650| 6f 72 74 20 61 0a 73 69 | 6d 70 6c 65 20 66 6f 72 |ort a.si|mple for|
|00001660| 6d 20 6f 66 20 61 63 63 | 65 73 73 20 63 6f 6e 74 |m of acc|ess cont|
|00001670| 72 6f 6c 20 74 68 61 74 | 20 69 73 20 62 61 73 65 |rol that| is base|
|00001680| 64 20 6f 6e 20 68 6f 73 | 74 20 28 6f 72 20 64 6f |d on hos|t (or do|
|00001690| 6d 61 69 6e 29 20 6e 61 | 6d 65 73 2c 0a 69 6e 74 |main) na|mes,.int|
|000016a0| 65 72 6e 65 74 20 61 64 | 64 72 65 73 73 65 73 20 |ernet ad|dresses |
|000016b0| 6f 72 20 6e 65 74 77 6f | 72 6b 20 6e 75 6d 62 65 |or netwo|rk numbe|
|000016c0| 72 73 2c 20 6e 65 74 77 | 6f 72 6b 20 64 61 65 6d |rs, netw|ork daem|
|000016d0| 6f 6e 20 70 72 6f 63 65 | 73 73 20 6e 61 6d 65 73 |on proce|ss names|
|000016e0| 20 61 6e 64 0a 28 6f 70 | 74 69 6f 6e 61 6c 6c 79 | and.(op|tionally|
|000016f0| 29 20 6e 65 74 67 72 6f | 75 70 73 20 28 61 20 4e |) netgro|ups (a N|
|00001700| 49 53 2c 20 66 6f 72 6d | 65 72 6c 79 20 59 50 2c |IS, form|erly YP,|
|00001710| 20 66 65 61 74 75 72 65 | 29 2e 20 20 57 69 6c 64 | feature|). Wild|
|00001720| 20 63 61 72 64 73 20 61 | 72 65 0a 73 75 70 70 6f | cards a|re.suppo|
|00001730| 72 74 65 64 2e 20 20 49 | 66 20 61 20 68 6f 73 74 |rted. I|f a host|
|00001740| 20 72 65 71 75 65 73 74 | 73 20 63 6f 6e 6e 65 63 | request|s connec|
|00001750| 74 69 6f 6e 20 74 6f 20 | 61 20 6e 65 74 77 6f 72 |tion to |a networ|
|00001760| 6b 20 64 61 65 6d 6f 6e | 2c 20 61 6e 64 20 69 66 |k daemon|, and if|
|00001770| 0a 74 68 65 20 28 64 61 | 65 6d 6f 6e 2c 20 68 6f |.the (da|emon, ho|
|00001780| 73 74 29 20 70 61 69 72 | 20 69 73 20 6d 61 74 63 |st) pair| is matc|
|00001790| 68 65 64 20 62 79 20 61 | 6e 20 65 6e 74 72 79 20 |hed by a|n entry |
|000017a0| 69 6e 20 74 68 65 20 2f | 65 74 63 2f 68 6f 73 74 |in the /|etc/host|
|000017b0| 73 2e 61 6c 6c 6f 77 0a | 66 69 6c 65 2c 20 61 63 |s.allow.|file, ac|
|000017c0| 63 65 73 73 20 69 73 20 | 67 72 61 6e 74 65 64 2e |cess is |granted.|
|000017d0| 20 20 4f 74 68 65 72 77 | 69 73 65 2c 20 69 66 20 | Otherw|ise, if |
|000017e0| 74 68 65 20 28 64 61 65 | 6d 6f 6e 2c 20 68 6f 73 |the (dae|mon, hos|
|000017f0| 74 29 20 70 61 69 72 20 | 69 73 0a 6d 61 74 63 68 |t) pair |is.match|
|00001800| 65 64 20 62 79 20 61 6e | 20 65 6e 74 72 79 20 69 |ed by an| entry i|
|00001810| 6e 20 74 68 65 20 2f 65 | 74 63 2f 68 6f 73 74 73 |n the /e|tc/hosts|
|00001820| 2e 64 65 6e 79 20 66 69 | 6c 65 2c 20 61 63 63 65 |.deny fi|le, acce|
|00001830| 73 73 20 69 73 20 64 65 | 6e 69 65 64 2e 0a 4f 74 |ss is de|nied..Ot|
|00001840| 68 65 72 77 69 73 65 2c | 20 61 63 63 65 73 73 20 |herwise,| access |
|00001850| 69 73 20 67 72 61 6e 74 | 65 64 2e 20 20 4d 6f 72 |is grant|ed. Mor|
|00001860| 65 20 64 65 74 61 69 6c | 73 20 61 72 65 20 70 72 |e detail|s are pr|
|00001870| 6f 76 69 64 65 64 20 69 | 6e 20 74 68 65 0a 68 6f |ovided i|n the.ho|
|00001880| 73 74 73 5f 61 63 63 65 | 73 73 28 35 29 20 6d 61 |sts_acce|ss(5) ma|
|00001890| 6e 75 61 6c 20 70 61 67 | 65 2e 20 20 54 68 69 73 |nual pag|e. This|
|000018a0| 20 66 6f 72 6d 20 6f 66 | 20 61 63 63 65 73 73 20 | form of| access |
|000018b0| 63 6f 6e 74 72 6f 6c 20 | 6d 61 79 20 62 65 20 75 |control |may be u|
|000018c0| 73 65 66 75 6c 0a 69 66 | 20 69 74 20 63 61 6e 20 |seful.if| it can |
|000018d0| 6e 6f 74 20 62 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |not be i|mplement|
|000018e0| 65 64 20 61 74 20 61 20 | 6d 6f 72 65 20 73 75 69 |ed at a |more sui|
|000018f0| 74 61 62 6c 65 20 6c 65 | 76 65 6c 20 28 73 75 63 |table le|vel (suc|
|00001900| 68 20 61 73 20 61 6e 0a | 69 6e 74 65 72 6e 65 74 |h as an.|internet|
|00001910| 20 72 6f 75 74 65 72 29 | 2e 0a 0a 4d 61 6a 6f 72 | router)|...Major|
|00001920| 20 65 6e 68 61 6e 63 65 | 6d 65 6e 74 3a 0a 2d 2d | enhance|ment:.--|
|00001930| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001940| 0a 0a 49 74 20 68 61 73 | 20 62 65 65 6e 20 62 72 |..It has| been br|
|00001950| 6f 75 67 68 74 20 74 6f | 20 6d 79 20 61 74 74 65 |ought to| my atte|
|00001960| 6e 74 69 6f 6e 20 74 68 | 61 74 20 61 75 74 68 65 |ntion th|at authe|
|00001970| 6e 74 69 63 61 74 69 6f | 6e 20 62 61 73 65 64 20 |nticatio|n based |
|00001980| 6f 6e 20 68 6f 73 74 0a | 61 64 64 72 65 73 73 20 |on host.|address |
|00001990| 74 6f 20 68 6f 73 74 20 | 6e 61 6d 65 20 6d 61 70 |to host |name map|
|000019a0| 70 69 6e 67 20 63 61 6e | 20 65 61 73 69 6c 79 20 |ping can| easily |
|000019b0| 62 65 20 73 70 6f 6f 66 | 65 64 20 62 79 20 70 6c |be spoof|ed by pl|
|000019c0| 61 79 69 6e 67 20 67 61 | 6d 65 73 0a 77 69 74 68 |aying ga|mes.with|
|000019d0| 20 73 6f 6d 65 20 64 6f | 6d 61 69 6e 20 6e 61 6d | some do|main nam|
|000019e0| 65 20 73 65 72 76 65 72 | 2e 20 20 41 20 6c 69 74 |e server|. A lit|
|000019f0| 74 6c 65 20 72 65 73 65 | 61 72 63 68 20 6c 65 64 |tle rese|arch led|
|00001a00| 20 6d 65 20 74 6f 20 74 | 68 65 20 63 6f 6e 63 6c | me to t|he concl|
|00001a10| 75 73 69 6f 6e 0a 74 68 | 61 74 20 6d 61 6e 79 20 |usion.th|at many |
|00001a20| 65 78 69 73 74 69 6e 67 | 20 72 73 68 64 20 61 6e |existing| rshd an|
|00001a30| 64 20 72 6c 6f 67 69 6e | 64 20 69 6d 70 6c 65 6d |d rlogin|d implem|
|00001a40| 65 6e 74 61 74 69 6f 6e | 73 20 64 6f 20 6e 6f 74 |entation|s do not|
|00001a50| 20 61 63 63 6f 75 6e 74 | 20 66 6f 72 0a 74 68 69 | account| for.thi|
|00001a60| 73 20 70 6f 74 65 6e 74 | 69 61 6c 20 70 72 6f 62 |s potent|ial prob|
|00001a70| 6c 65 6d 2e 0a 0a 54 68 | 65 20 70 72 65 73 65 6e |lem...Th|e presen|
|00001a80| 74 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 74 68 |t versio|ns of th|
|00001a90| 65 20 66 72 6f 6e 74 2d | 65 6e 64 20 70 72 6f 67 |e front-|end prog|
|00001aa0| 72 61 6d 73 20 70 72 6f | 76 69 64 65 20 61 20 77 |rams pro|vide a w|
|00001ab0| 61 79 20 74 6f 20 74 61 | 6b 65 0a 63 61 72 65 20 |ay to ta|ke.care |
|00001ac0| 6f 66 20 74 68 65 20 70 | 72 6f 62 6c 65 6d 2e 20 |of the p|roblem. |
|00001ad0| 20 41 66 74 65 72 20 6d | 61 70 70 69 6e 67 20 61 | After m|apping a|
|00001ae0| 20 63 6c 69 65 6e 74 20 | 68 6f 73 74 20 61 64 64 | client |host add|
|00001af0| 72 65 73 73 20 74 6f 20 | 61 20 68 6f 73 74 0a 6e |ress to |a host.n|
|00001b00| 61 6d 65 2c 20 74 68 65 | 20 66 72 6f 6e 74 2d 65 |ame, the| front-e|
|00001b10| 6e 64 20 70 72 6f 67 72 | 61 6d 73 20 6e 6f 77 20 |nd progr|ams now |
|00001b20| 76 65 72 69 66 79 20 74 | 68 61 74 20 74 68 65 20 |verify t|hat the |
|00001b30| 68 6f 73 74 20 6e 61 6d | 65 20 6d 61 70 73 20 74 |host nam|e maps t|
|00001b40| 6f 20 74 68 65 0a 73 61 | 6d 65 20 68 6f 73 74 20 |o the.sa|me host |
|00001b50| 61 64 64 72 65 73 73 2e | 20 20 54 68 65 20 69 64 |address.| The id|
|00001b60| 65 61 20 69 73 20 74 68 | 61 74 20 69 74 20 69 73 |ea is th|at it is|
|00001b70| 20 6d 75 63 68 20 65 61 | 73 69 65 72 20 74 6f 20 | much ea|sier to |
|00001b80| 63 6f 6d 70 72 6f 6d 69 | 73 65 0a 74 68 65 20 61 |compromi|se.the a|
|00001b90| 64 64 72 65 73 73 2d 3e | 6e 61 6d 65 20 6d 61 70 |ddress->|name map|
|00001ba0| 20 6f 66 20 73 6f 6d 65 | 20 72 61 6e 64 6f 6d 20 | of some| random |
|00001bb0| 6e 61 6d 65 20 73 65 72 | 76 65 72 20 74 68 61 6e |name ser|ver than|
|00001bc0| 20 74 6f 20 63 6f 6d 70 | 72 6f 6d 69 73 65 20 74 | to comp|romise t|
|00001bd0| 68 65 0a 6e 61 6d 65 2d | 3e 61 64 64 72 65 73 73 |he.name-|>address|
|00001be0| 20 6d 61 70 20 74 68 61 | 74 20 69 73 20 73 70 65 | map tha|t is spe|
|00001bf0| 63 69 66 69 63 20 74 6f | 20 79 6f 75 72 20 64 6f |cific to| your do|
|00001c00| 6d 61 69 6e 2e 20 20 49 | 66 20 74 68 65 20 73 6f |main. I|f the so|
|00001c10| 75 72 63 65 20 69 73 0a | 63 6f 6d 70 69 6c 65 64 |urce is.|compiled|
|00001c20| 20 77 69 74 68 20 2d 44 | 50 41 52 41 4e 4f 49 44 | with -D|PARANOID|
|00001c30| 2c 20 74 68 65 20 66 72 | 6f 6e 74 20 65 6e 64 73 |, the fr|ont ends|
|00001c40| 20 6a 75 73 74 73 20 64 | 72 6f 70 20 74 68 65 20 | justs d|rop the |
|00001c50| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 69 6e 0a 63 61 |connecti|on in.ca|
|00001c60| 73 65 20 6f 66 20 61 20 | 68 6f 73 74 20 6e 61 6d |se of a |host nam|
|00001c70| 65 2f 61 64 64 72 65 73 | 73 20 6d 69 73 6d 61 74 |e/addres|s mismat|
|00001c80| 63 68 2e 20 4f 74 68 65 | 72 77 69 73 65 2c 20 74 |ch. Othe|rwise, t|
|00001c90| 68 65 20 66 72 6f 6e 74 | 20 65 6e 64 73 20 6a 75 |he front| ends ju|
|00001ca0| 73 74 0a 69 67 6e 6f 72 | 65 20 74 68 65 20 62 61 |st.ignor|e the ba|
|00001cb0| 64 20 68 6f 73 74 20 6e | 61 6d 65 20 61 6e 64 20 |d host n|ame and |
|00001cc0| 75 73 65 20 74 68 65 20 | 68 6f 73 74 20 61 64 64 |use the |host add|
|00001cd0| 72 65 73 73 20 77 68 65 | 6e 20 63 6f 6e 73 75 6c |ress whe|n consul|
|00001ce0| 74 69 6e 67 20 74 68 65 | 0a 61 63 63 65 73 73 20 |ting the|.access |
|00001cf0| 63 6f 6e 74 72 6f 6c 20 | 66 69 6c 65 73 2e 0a 0a |control |files...|
|00001d00| 4d 69 6e 6f 72 20 65 6e | 68 61 6e 63 65 6d 65 6e |Minor en|hancemen|
|00001d10| 74 73 3a 20 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ts: .---|--------|
|00001d20| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 54 68 65 20 68 6f |--------|..The ho|
|00001d30| 73 74 20 61 63 63 65 73 | 73 20 63 6f 6e 74 72 6f |st acces|s contro|
|00001d40| 6c 20 66 69 6c 65 73 20 | 6e 6f 77 20 73 75 70 70 |l files |now supp|
|00001d50| 6f 72 74 20 6d 6f 72 65 | 20 74 79 70 65 73 20 6f |ort more| types o|
|00001d60| 66 20 77 69 6c 64 20 63 | 61 72 64 73 20 61 6e 64 |f wild c|ards and|
|00001d70| 0a 28 6f 70 74 69 6f 6e | 61 6c 6c 79 29 20 61 6c |.(option|ally) al|
|00001d80| 6c 6f 77 20 74 68 65 20 | 75 73 65 20 6f 66 20 6e |low the |use of n|
|00001d90| 65 74 67 72 6f 75 70 20 | 6e 61 6d 65 73 2e 20 20 |etgroup |names. |
|00001da0| 4e 65 74 67 72 6f 75 70 | 20 73 75 70 70 6f 72 74 |Netgroup| support|
|00001db0| 20 69 73 0a 75 73 75 61 | 6c 6c 79 20 61 76 61 69 | is.usua|lly avai|
|00001dc0| 6c 61 62 6c 65 20 6f 6e | 20 73 79 73 74 65 6d 73 |lable on| systems|
|00001dd0| 20 77 69 74 68 20 4e 49 | 53 20 28 66 6f 72 6d 65 | with NI|S (forme|
|00001de0| 72 6c 79 20 59 50 29 20 | 73 6f 66 74 77 61 72 65 |rly YP) |software|
|00001df0| 2e 0a 0a 52 65 6c 61 74 | 65 64 20 73 6f 66 74 77 |...Relat|ed softw|
|00001e00| 61 72 65 3a 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |are:.---|--------|
|00001e10| 2d 2d 2d 2d 2d 2d 0a 0a | 56 65 72 73 69 6f 6e 73 |------..|Versions|
|00001e20| 20 6f 66 20 72 73 68 64 | 20 61 6e 64 20 72 6c 6f | of rshd| and rlo|
|00001e30| 67 69 6e 64 2c 20 68 61 | 63 6b 65 64 20 74 6f 20 |gind, ha|cked to |
|00001e40| 72 65 70 6f 72 74 20 74 | 68 65 20 72 65 6d 6f 74 |report t|he remot|
|00001e50| 65 20 75 73 65 72 20 6e | 61 6d 65 20 61 73 0a 77 |e user n|ame as.w|
|00001e60| 65 6c 6c 2c 20 61 72 65 | 20 61 76 61 69 6c 61 62 |ell, are| availab|
|00001e70| 6c 65 20 66 6f 72 20 61 | 6e 6f 6e 20 66 74 70 20 |le for a|non ftp |
|00001e80| 28 66 74 70 2e 77 69 6e | 2e 74 75 65 2e 6e 6c 3a |(ftp.win|.tue.nl:|
|00001e90| 2f 70 75 62 2f 6c 6f 67 | 64 61 65 6d 6f 6e 2e 74 |/pub/log|daemon.t|
|00001ea0| 61 72 2e 5a 29 2e 20 20 | 0a 54 68 61 74 20 61 72 |ar.Z). |.That ar|
|00001eb0| 63 68 69 76 65 20 61 6c | 73 6f 20 63 6f 6e 74 61 |chive al|so conta|
|00001ec0| 69 6e 73 20 61 20 74 66 | 74 70 64 20 73 6f 75 72 |ins a tf|tpd sour|
|00001ed0| 63 65 20 74 68 61 74 20 | 6c 6f 67 73 20 74 68 65 |ce that |logs the|
|00001ee0| 20 72 65 6d 6f 74 65 20 | 68 6f 73 74 0a 6e 61 6d | remote |host.nam|
|00001ef0| 65 20 28 6e 69 63 65 20 | 69 66 20 79 6f 75 20 77 |e (nice |if you w|
|00001f00| 61 6e 74 20 74 6f 20 6b | 6e 6f 77 20 77 68 6f 20 |ant to k|now who |
|00001f10| 69 73 20 69 6e 74 65 72 | 65 73 74 65 64 20 69 6e |is inter|ested in|
|00001f20| 20 79 6f 75 72 20 2f 65 | 74 63 2f 70 61 73 73 77 | your /e|tc/passw|
|00001f30| 64 0a 66 69 6c 65 29 2e | 20 20 41 6c 6c 20 74 68 |d.file).| All th|
|00001f40| 6f 73 65 20 70 72 6f 67 | 72 61 6d 73 20 68 61 76 |ose prog|rams hav|
|00001f50| 65 20 62 65 65 6e 20 74 | 65 73 74 65 64 20 6f 6e |e been t|ested on|
|00001f60| 6c 79 20 77 69 74 68 20 | 53 75 6e 4f 53 20 3e 3d |ly with |SunOS >=|
|00001f70| 20 34 2e 30 2e 0a 0a 41 | 6e 6f 74 68 65 72 20 77 | 4.0...A|nother w|
|00001f80| 61 79 20 74 6f 20 6d 61 | 6e 61 67 65 20 61 63 63 |ay to ma|nage acc|
|00001f90| 65 73 73 20 74 6f 20 74 | 63 70 2f 69 70 20 73 65 |ess to t|cp/ip se|
|00001fa0| 72 76 69 63 65 73 20 69 | 73 20 69 6c 6c 75 73 74 |rvices i|s illust|
|00001fb0| 72 61 74 65 64 20 62 79 | 20 74 68 65 0a 73 65 72 |rated by| the.ser|
|00001fc0| 76 65 72 73 20 70 72 6f | 76 69 64 65 64 20 77 69 |vers pro|vided wi|
|00001fd0| 74 68 20 74 68 65 20 61 | 75 74 68 75 74 69 6c 20 |th the a|uthutil |
|00001fe0| 70 61 63 6b 61 67 65 20 | 28 63 6f 6d 70 2e 73 6f |package |(comp.so|
|00001ff0| 75 72 63 65 73 2e 75 6e | 69 78 20 76 6f 6c 75 6d |urces.un|ix volum|
|00002000| 65 0a 32 32 29 2e 20 54 | 68 69 73 20 68 61 73 20 |e.22). T|his has |
|00002010| 74 68 65 20 61 64 76 61 | 6e 74 61 67 65 20 74 68 |the adva|ntage th|
|00002020| 61 74 20 6f 6e 65 20 77 | 69 6c 6c 20 67 65 74 20 |at one w|ill get |
|00002030| 74 68 65 20 72 65 6d 6f | 74 65 20 75 73 65 72 6e |the remo|te usern|
|00002040| 61 6d 65 20 66 72 6f 6d | 0a 61 6e 79 20 68 6f 73 |ame from|.any hos|
|00002050| 74 20 73 75 70 70 6f 72 | 74 69 6e 67 20 52 46 43 |t suppor|ting RFC|
|00002060| 20 39 33 31 20 73 65 63 | 75 72 69 74 79 2e 20 20 | 931 sec|urity. |
|00002070| 42 79 20 69 6e 73 74 61 | 6c 6c 69 6e 67 20 74 68 |By insta|lling th|
|00002080| 65 20 61 75 74 68 20 70 | 61 63 6b 61 67 65 0a 28 |e auth p|ackage.(|
|00002090| 73 61 6d 65 20 76 6f 6c | 75 6d 65 29 20 6f 6e 65 |same vol|ume) one|
|000020a0| 20 73 75 70 70 6f 72 74 | 73 20 52 46 43 20 39 33 | support|s RFC 93|
|000020b0| 31 20 73 65 63 75 72 69 | 74 79 20 74 6f 6f 20 28 |1 securi|ty too (|
|000020c0| 62 75 74 20 79 6f 75 20 | 77 69 6c 6c 20 68 61 76 |but you |will hav|
|000020d0| 65 20 74 6f 0a 62 65 6c | 69 65 76 65 20 77 68 61 |e to.bel|ieve wha|
|000020e0| 74 20 74 68 65 20 72 65 | 6d 6f 74 65 20 68 6f 73 |t the re|mote hos|
|000020f0| 74 20 74 65 6c 6c 73 20 | 79 6f 75 29 2e 20 20 45 |t tells |you). E|
|00002100| 76 65 6e 74 75 61 6c 6c | 79 20 6f 6e 65 20 63 61 |ventuall|y one ca|
|00002110| 6e 20 73 74 61 72 74 0a | 63 75 74 74 69 6e 67 20 |n start.|cutting |
|00002120| 6f 66 66 20 75 6e 61 75 | 74 68 65 6e 74 69 63 61 |off unau|thentica|
|00002130| 74 65 64 20 63 6f 6e 6e | 65 63 74 69 6f 6e 73 2e |ted conn|ections.|
|00002140| 20 54 68 69 73 20 69 73 | 20 6f 62 76 69 6f 75 73 | This is| obvious|
|00002150| 6c 79 20 61 20 6d 75 63 | 68 20 6d 6f 72 65 0a 61 |ly a muc|h more.a|
|00002160| 64 76 61 6e 63 65 64 20 | 61 70 70 72 6f 61 63 68 |dvanced |approach|
|00002170| 20 74 68 61 6e 20 77 68 | 61 74 20 6d 79 20 66 72 | than wh|at my fr|
|00002180| 6f 6e 74 2d 65 6e 64 20 | 70 72 6f 67 72 61 6d 73 |ont-end |programs|
|00002190| 20 70 72 6f 76 69 64 65 | 2e 20 54 68 65 20 70 72 | provide|. The pr|
|000021a0| 65 73 65 6e 74 0a 70 61 | 63 6b 61 67 65 20 69 73 |esent.pa|ckage is|
|000021b0| 20 6d 6f 72 65 20 73 75 | 69 74 61 62 6c 65 20 66 | more su|itable f|
|000021c0| 6f 72 20 74 68 6f 73 65 | 20 77 68 6f 20 6c 61 63 |or those| who lac|
|000021d0| 6b 20 74 68 65 20 72 65 | 73 6f 75 72 63 65 73 20 |k the re|sources |
|000021e0| 74 6f 20 69 6e 73 74 61 | 6c 6c 0a 61 6e 79 74 68 |to insta|ll.anyth|
|000021f0| 69 6e 67 20 74 68 61 74 | 20 72 65 71 75 69 72 65 |ing that| require|
|00002200| 73 20 6d 6f 72 65 20 74 | 68 61 6e 20 6a 75 73 74 |s more t|han just|
|00002210| 20 72 65 6e 61 6d 69 6e | 67 20 61 20 63 6f 75 70 | renamin|g a coup|
|00002220| 6c 65 20 6f 66 20 65 78 | 65 63 75 74 61 62 6c 65 |le of ex|ecutable|
|00002230| 73 2e 0a 0a 43 6f 6e 66 | 69 67 75 72 61 74 69 6f |s...Conf|iguratio|
|00002240| 6e 20 61 6e 64 20 69 6e | 73 74 61 6c 6c 61 74 69 |n and in|stallati|
|00002250| 6f 6e 20 28 74 68 65 20 | 65 61 73 79 20 77 61 79 |on (the |easy way|
|00002260| 29 3a 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |):.-----|--------|
|00002270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002290| 2d 0a 0a 41 6e 20 61 64 | 76 61 6e 63 65 64 20 69 |-..An ad|vanced i|
|000022a0| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 72 65 63 69 |nstallat|ion reci|
|000022b0| 70 65 20 69 73 20 67 69 | 76 65 6e 20 6c 61 74 65 |pe is gi|ven late|
|000022c0| 72 6f 6e 2e 20 54 68 65 | 20 22 65 61 73 79 20 77 |ron. The| "easy w|
|000022d0| 61 79 22 20 72 65 63 69 | 70 65 0a 72 65 71 75 69 |ay" reci|pe.requi|
|000022e0| 72 65 73 20 6e 6f 20 63 | 68 61 6e 67 65 73 20 74 |res no c|hanges t|
|000022f0| 6f 20 65 78 69 73 74 69 | 6e 67 20 73 6f 66 74 77 |o existi|ng softw|
|00002300| 61 72 65 20 6f 72 20 63 | 6f 6e 66 69 67 75 72 61 |are or c|onfigura|
|00002310| 74 69 6f 6e 20 66 69 6c | 65 73 2e 0a 0a 49 66 20 |tion fil|es...If |
|00002320| 79 6f 75 20 64 6f 6e 27 | 74 20 72 75 6e 20 55 6c |you don'|t run Ul|
|00002330| 74 72 69 78 2c 20 79 6f | 75 20 64 6f 6e 27 74 20 |trix, yo|u don't |
|00002340| 6e 65 65 64 20 74 68 65 | 20 6d 69 73 63 64 20 66 |need the| miscd f|
|00002350| 72 6f 6e 74 2d 65 6e 64 | 20 70 72 6f 67 72 61 6d |ront-end| program|
|00002360| 2e 0a 54 68 65 20 55 6c | 74 72 69 78 20 6d 69 73 |..The Ul|trix mis|
|00002370| 63 64 20 64 61 65 6d 6f | 6e 20 69 6d 70 6c 65 6d |cd daemo|n implem|
|00002380| 65 6e 74 73 20 61 6d 6f | 6e 67 20 6f 74 68 65 72 |ents amo|ng other|
|00002390| 73 20 74 68 65 20 53 59 | 53 54 41 54 20 73 65 72 |s the SY|STAT ser|
|000023a0| 76 69 63 65 2c 0a 77 68 | 69 63 68 20 70 69 70 65 |vice,.wh|ich pipe|
|000023b0| 73 20 74 68 65 20 6f 75 | 74 70 75 74 20 66 72 6f |s the ou|tput fro|
|000023c0| 6d 20 74 68 65 20 57 48 | 4f 20 63 6f 6d 6d 61 6e |m the WH|O comman|
|000023d0| 64 20 74 6f 20 73 74 61 | 6e 64 61 72 64 20 6f 75 |d to sta|ndard ou|
|000023e0| 74 70 75 74 2e 0a 0a 42 | 79 20 64 65 66 61 75 6c |tput...B|y defaul|
|000023f0| 74 2c 20 74 68 65 20 66 | 72 6f 6e 74 2d 65 6e 64 |t, the f|ront-end|
|00002400| 20 70 72 6f 67 72 61 6d | 73 20 61 73 73 75 6d 65 | program|s assume|
|00002410| 20 74 68 61 74 20 74 68 | 65 20 76 65 6e 64 6f 72 | that th|e vendor|
|00002420| 2d 70 72 6f 76 69 64 65 | 64 0a 64 61 65 6d 6f 6e |-provide|d.daemon|
|00002430| 73 20 77 69 6c 6c 20 62 | 65 20 6d 6f 76 65 64 20 |s will b|e moved |
|00002440| 74 6f 20 74 68 65 20 22 | 2f 75 73 72 2f 65 74 63 |to the "|/usr/etc|
|00002450| 2f 2e 2e 2e 22 20 64 69 | 72 65 63 74 6f 72 79 2e |/..." di|rectory.|
|00002460| 20 20 49 66 20 79 6f 75 | 20 77 61 6e 74 0a 73 6f | If you| want.so|
|00002470| 6d 65 74 68 69 6e 67 20 | 65 6c 73 65 2c 20 61 64 |mething |else, ad|
|00002480| 6a 75 73 74 20 74 68 65 | 20 52 45 41 4c 5f 44 41 |just the| REAL_DA|
|00002490| 45 4d 4f 4e 20 61 6e 64 | 20 74 68 65 20 52 45 41 |EMON and| the REA|
|000024a0| 4c 5f 44 41 45 4d 4f 4e | 5f 44 49 52 20 6d 61 63 |L_DAEMON|_DIR mac|
|000024b0| 72 6f 73 0a 69 6e 20 74 | 68 65 20 66 69 6c 65 73 |ros.in t|he files|
|000024c0| 20 6d 69 73 63 64 2e 63 | 20 61 6e 64 20 74 63 70 | miscd.c| and tcp|
|000024d0| 64 2e 63 2e 0a 0a 42 79 | 20 64 65 66 61 75 6c 74 |d.c...By| default|
|000024e0| 2c 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 61 72 |, connec|tions ar|
|000024f0| 65 20 6c 6f 67 67 65 64 | 20 74 6f 20 74 68 65 20 |e logged| to the |
|00002500| 73 61 6d 65 20 70 6c 61 | 63 65 20 77 68 65 72 65 |same pla|ce where|
|00002510| 20 74 68 65 20 73 65 6e | 64 6d 61 69 6c 0a 6c 6f | the sen|dmail.lo|
|00002520| 67 20 65 6e 74 72 69 65 | 73 20 67 6f 2e 20 20 49 |g entrie|s go. I|
|00002530| 66 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 73 68 |f connec|tions sh|
|00002540| 6f 75 6c 64 20 62 65 20 | 6c 6f 67 67 65 64 20 65 |ould be |logged e|
|00002550| 6c 73 65 77 68 65 72 65 | 2c 20 61 64 6a 75 73 74 |lsewhere|, adjust|
|00002560| 20 74 68 65 0a 4c 4f 47 | 5f 4d 41 49 4c 20 6d 61 | the.LOG|_MAIL ma|
|00002570| 63 72 6f 20 69 6e 20 74 | 68 65 20 6d 69 73 63 64 |cro in t|he miscd|
|00002580| 2e 63 20 61 6e 64 20 74 | 63 70 64 2e 63 20 66 69 |.c and t|cpd.c fi|
|00002590| 6c 65 73 2c 20 61 6e 64 | 20 75 70 64 61 74 65 20 |les, and| update |
|000025a0| 79 6f 75 72 20 73 79 73 | 6c 6f 67 0a 63 6f 6e 66 |your sys|log.conf|
|000025b0| 69 67 75 72 61 74 69 6f | 6e 20 66 69 6c 65 20 28 |iguratio|n file (|
|000025c0| 75 73 75 61 6c 6c 79 2c | 20 2f 65 74 63 2f 73 79 |usually,| /etc/sy|
|000025d0| 73 6c 6f 67 2e 63 6f 6e | 66 29 2e 20 20 4d 6f 73 |slog.con|f). Mos|
|000025e0| 74 20 55 6c 74 72 69 78 | 20 76 65 72 73 69 6f 6e |t Ultrix| version|
|000025f0| 73 20 0a 64 6f 20 6e 6f | 74 20 70 72 6f 76 69 64 |s .do no|t provid|
|00002600| 65 20 74 68 69 73 20 66 | 6c 65 78 69 62 69 6c 69 |e this f|lexibili|
|00002610| 74 79 2c 20 74 68 6f 75 | 67 68 2e 0a 0a 42 79 20 |ty, thou|gh...By |
|00002620| 64 65 66 61 75 6c 74 2c | 20 74 68 65 20 66 72 6f |default,| the fro|
|00002630| 6e 74 2d 65 6e 64 20 70 | 72 6f 67 72 61 6d 73 20 |nt-end p|rograms |
|00002640| 73 75 70 70 6f 72 74 20 | 68 6f 73 74 20 61 63 63 |support |host acc|
|00002650| 65 73 73 20 63 6f 6e 74 | 72 6f 6c 2e 20 20 41 63 |ess cont|rol. Ac|
|00002660| 63 65 73 73 0a 63 6f 6e | 74 72 6f 6c 20 69 73 20 |cess.con|trol is |
|00002670| 74 75 72 6e 65 64 20 6f | 66 66 20 77 68 65 6e 20 |turned o|ff when |
|00002680| 74 68 65 20 2f 65 74 63 | 2f 68 6f 73 74 73 2e 7b |the /etc|/hosts.{|
|00002690| 61 6c 6c 6f 77 2c 64 65 | 6e 79 7d 20 66 69 6c 65 |allow,de|ny} file|
|000026a0| 73 20 64 6f 20 6e 6f 74 | 0a 65 78 69 73 74 2e 20 |s do not|.exist. |
|000026b0| 49 66 20 79 6f 75 20 64 | 6f 20 6e 6f 74 20 6e 65 |If you d|o not ne|
|000026c0| 65 64 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 68 |ed suppo|rt for h|
|000026d0| 6f 73 74 20 61 63 63 65 | 73 73 20 63 6f 6e 74 72 |ost acce|ss contr|
|000026e0| 6f 6c 2c 20 61 64 6a 75 | 73 74 20 74 68 65 0a 6d |ol, adju|st the.m|
|000026f0| 61 6b 65 66 69 6c 65 20 | 73 6f 20 74 68 61 74 20 |akefile |so that |
|00002700| 74 68 65 20 70 72 6f 67 | 72 61 6d 73 20 61 72 65 |the prog|rams are|
|00002710| 20 63 6f 6d 70 69 6c 65 | 64 20 77 69 74 68 6f 75 | compile|d withou|
|00002720| 74 20 2d 44 48 4f 53 54 | 53 5f 41 43 43 45 53 53 |t -DHOST|S_ACCESS|
|00002730| 2e 0a 4e 6f 74 65 3a 20 | 20 74 68 65 20 68 6f 73 |..Note: | the hos|
|00002740| 74 20 61 63 63 65 73 73 | 20 63 6f 6e 74 72 6f 6c |t access| control|
|00002750| 20 66 61 63 69 6c 69 74 | 79 20 72 65 71 75 69 72 | facilit|y requir|
|00002760| 65 73 20 74 68 65 20 73 | 74 72 63 68 72 28 29 2c |es the s|trchr(),|
|00002770| 20 73 74 72 73 70 6e 28 | 29 0a 61 6e 64 20 73 74 | strspn(|).and st|
|00002780| 72 74 6f 6b 28 29 20 72 | 6f 75 74 69 6e 65 73 2e |rtok() r|outines.|
|00002790| 0a 0a 49 66 20 79 6f 75 | 72 20 43 20 6c 69 62 72 |..If you|r C libr|
|000027a0| 61 72 79 20 64 6f 65 73 | 20 6e 6f 74 20 70 72 6f |ary does| not pro|
|000027b0| 76 69 64 65 20 74 68 65 | 20 73 74 72 63 61 73 65 |vide the| strcase|
|000027c0| 63 6d 70 28 29 20 72 6f | 75 74 69 6e 65 2c 20 61 |cmp() ro|utine, a|
|000027d0| 64 6a 75 73 74 20 74 68 | 65 0a 41 55 58 5f 4f 42 |djust th|e.AUX_OB|
|000027e0| 4a 20 6d 61 63 72 6f 20 | 69 6e 20 74 68 65 20 4d |J macro |in the M|
|000027f0| 61 6b 65 66 69 6c 65 20 | 73 6f 20 74 68 61 74 20 |akefile |so that |
|00002800| 69 74 20 75 73 65 73 20 | 74 68 65 20 73 74 72 63 |it uses |the strc|
|00002810| 61 73 65 63 6d 70 28 29 | 20 76 65 72 73 69 6f 6e |asecmp()| version|
|00002820| 0a 70 72 6f 76 69 64 65 | 64 20 77 69 74 68 20 74 |.provide|d with t|
|00002830| 68 69 73 20 70 61 63 6b | 61 67 65 2e 0a 0a 49 6e |his pack|age...In|
|00002840| 20 74 68 65 20 4d 61 6b | 65 66 69 6c 65 2c 20 61 | the Mak|efile, a|
|00002850| 64 64 20 2d 44 6d 65 6d | 63 6d 70 3d 62 63 6d 70 |dd -Dmem|cmp=bcmp|
|00002860| 20 74 6f 20 74 68 65 20 | 43 46 4c 41 47 53 20 6d | to the |CFLAGS m|
|00002870| 61 63 72 6f 20 69 66 20 | 79 6f 75 72 20 73 79 73 |acro if |your sys|
|00002880| 74 65 6d 0a 64 6f 65 73 | 20 6e 6f 74 20 68 61 76 |tem.does| not hav|
|00002890| 65 20 6d 65 6d 63 6d 70 | 28 29 2c 20 61 6e 64 20 |e memcmp|(), and |
|000028a0| 61 64 64 20 2d 44 4e 45 | 54 47 52 4f 55 50 20 74 |add -DNE|TGROUP t|
|000028b0| 6f 20 74 68 65 20 43 46 | 4c 41 47 53 20 6d 61 63 |o the CF|LAGS mac|
|000028c0| 72 6f 20 69 66 20 79 6f | 75 72 0a 73 79 73 74 65 |ro if yo|ur.syste|
|000028d0| 6d 20 73 75 70 70 6f 72 | 74 73 20 6e 65 74 67 72 |m suppor|ts netgr|
|000028e0| 6f 75 70 73 2e 0a 0a 43 | 6f 6d 70 69 6c 65 20 77 |oups...C|ompile w|
|000028f0| 69 74 68 20 2d 44 50 41 | 52 41 4e 4f 49 44 20 69 |ith -DPA|RANOID i|
|00002900| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 64 72 |f you wa|nt to dr|
|00002910| 6f 70 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 73 20 77 |op conne|ctions w|
|00002920| 68 65 6e 20 61 20 72 65 | 6d 6f 74 65 0a 68 6f 73 |hen a re|mote.hos|
|00002930| 74 20 6e 61 6d 65 20 64 | 6f 65 73 20 6e 6f 74 20 |t name d|oes not |
|00002940| 61 67 72 65 65 20 77 69 | 74 68 20 74 68 65 20 72 |agree wi|th the r|
|00002950| 65 6d 6f 74 65 20 68 6f | 73 74 20 61 64 64 72 65 |emote ho|st addre|
|00002960| 73 73 2e 20 54 68 69 73 | 20 68 65 6c 70 73 20 0a |ss. This| helps .|
|00002970| 61 67 61 69 6e 73 74 20 | 61 74 74 61 63 6b 73 20 |against |attacks |
|00002980| 74 68 72 6f 75 67 68 20 | 63 6f 6d 70 72 6f 6d 69 |through |compromi|
|00002990| 73 65 64 20 64 6f 6d 61 | 69 6e 20 6e 61 6d 65 20 |sed doma|in name |
|000029a0| 73 65 72 76 65 72 73 2c | 20 62 75 74 20 6d 61 79 |servers,| but may|
|000029b0| 0a 6f 63 63 61 73 69 6f | 6e 61 6c 6c 79 20 63 61 |.occasio|nally ca|
|000029c0| 75 73 65 20 61 20 70 65 | 72 66 65 63 74 6c 79 20 |use a pe|rfectly |
|000029d0| 6c 65 67 61 6c 20 63 6f | 6e 6e 65 63 74 69 6f 6e |legal co|nnection|
|000029e0| 20 74 6f 20 62 65 20 72 | 65 66 75 73 65 64 20 64 | to be r|efused d|
|000029f0| 75 65 20 74 6f 0a 74 72 | 61 6e 73 69 65 6e 74 20 |ue to.tr|ansient |
|00002a00| 6e 61 6d 65 20 73 65 72 | 76 65 72 20 6c 6f 6f 6b |name ser|ver look|
|00002a10| 75 70 20 70 72 6f 62 6c | 65 6d 73 2e 0a 0a 54 68 |up probl|ems...Th|
|00002a20| 65 20 74 63 70 64 20 70 | 72 6f 67 72 61 6d 20 69 |e tcpd p|rogram i|
|00002a30| 73 20 69 6e 74 65 6e 64 | 65 64 20 66 6f 72 20 6d |s intend|ed for m|
|00002a40| 6f 6e 69 74 6f 72 69 6e | 67 20 63 6f 6e 6e 65 63 |onitorin|g connec|
|00002a50| 74 69 6f 6e 73 20 74 6f | 20 74 68 65 20 74 65 6c |tions to| the tel|
|00002a60| 6e 65 74 2c 0a 66 69 6e | 67 65 72 2c 20 66 74 70 |net,.fin|ger, ftp|
|00002a70| 2c 20 65 78 65 63 2c 20 | 72 73 68 20 61 6e 64 20 |, exec, |rsh and |
|00002a80| 72 6c 6f 67 69 6e 20 73 | 65 72 76 69 63 65 73 2e |rlogin s|ervices.|
|00002a90| 20 44 65 63 69 64 65 20 | 77 68 69 63 68 20 73 65 | Decide |which se|
|00002aa0| 72 76 69 63 65 73 20 79 | 6f 75 0a 77 61 6e 74 20 |rvices y|ou.want |
|00002ab0| 74 6f 20 62 65 20 6d 6f | 6e 69 74 6f 72 65 64 2e |to be mo|nitored.|
|00002ac0| 20 4d 6f 76 65 20 74 68 | 65 20 76 65 6e 64 6f 72 | Move th|e vendor|
|00002ad0| 2d 70 72 6f 76 69 64 65 | 64 20 64 61 65 6d 6f 6e |-provide|d daemon|
|00002ae0| 20 70 72 6f 67 72 61 6d | 73 20 74 6f 20 74 68 65 | program|s to the|
|00002af0| 0a 6c 6f 63 61 74 69 6f | 6e 20 73 70 65 63 69 66 |.locatio|n specif|
|00002b00| 69 65 64 20 62 79 20 74 | 68 65 20 52 45 41 4c 5f |ied by t|he REAL_|
|00002b10| 44 41 45 4d 4f 4e 5f 44 | 49 52 20 6d 61 63 72 6f |DAEMON_D|IR macro|
|00002b20| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 20 74 63 70 | in the |file tcp|
|00002b30| 64 2e 63 2c 20 61 6e 64 | 0a 63 6f 70 79 20 74 68 |d.c, and|.copy th|
|00002b40| 65 20 74 63 70 64 20 66 | 72 6f 6e 74 20 65 6e 64 |e tcpd f|ront end|
|00002b50| 20 74 6f 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e | to the |location|
|00002b60| 73 20 77 68 65 72 65 20 | 74 68 65 20 76 65 6e 64 |s where |the vend|
|00002b70| 6f 72 2d 70 72 6f 76 69 | 64 65 64 0a 64 61 65 6d |or-provi|ded.daem|
|00002b80| 6f 6e 73 20 75 73 65 64 | 20 74 6f 20 62 65 2e 20 |ons used| to be. |
|00002b90| 54 68 61 74 20 69 73 2c | 20 6f 6e 65 20 63 6f 70 |That is,| one cop|
|00002ba0| 79 20 6f 66 20 74 68 65 | 20 74 63 70 64 20 66 72 |y of the| tcpd fr|
|00002bb0| 6f 6e 74 20 65 6e 64 20 | 66 6f 72 20 65 61 63 68 |ont end |for each|
|00002bc0| 0a 73 65 72 76 69 63 65 | 20 74 68 61 74 20 79 6f |.service| that yo|
|00002bd0| 75 20 77 61 6e 74 20 74 | 6f 20 6d 6f 6e 69 74 6f |u want t|o monito|
|00002be0| 72 2e 0a 0a 55 6c 74 72 | 69 78 20 6f 6e 6c 79 3a |r...Ultr|ix only:|
|00002bf0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|00002c00| 6d 6f 6e 69 74 6f 72 20 | 63 6f 6e 6e 65 63 74 69 |monitor |connecti|
|00002c10| 6f 6e 73 20 74 6f 20 74 | 68 65 20 53 59 53 54 41 |ons to t|he SYSTA|
|00002c20| 54 20 73 65 72 76 69 63 | 65 2c 0a 6d 6f 76 65 20 |T servic|e,.move |
|00002c30| 74 68 65 20 76 65 6e 64 | 6f 72 2d 70 72 6f 76 69 |the vend|or-provi|
|00002c40| 64 65 64 20 6d 69 73 63 | 64 20 64 61 65 6d 6f 6e |ded misc|d daemon|
|00002c50| 20 74 6f 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e | to the |location|
|00002c60| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 74 68 | specifi|ed by th|
|00002c70| 65 0a 52 45 41 4c 5f 44 | 41 45 4d 4f 4e 20 6d 61 |e.REAL_D|AEMON ma|
|00002c80| 63 72 6f 20 69 6e 20 74 | 68 65 20 6d 69 73 63 64 |cro in t|he miscd|
|00002c90| 2e 63 20 66 69 6c 65 2c | 20 61 6e 64 20 69 6e 73 |.c file,| and ins|
|00002ca0| 74 61 6c 6c 20 74 68 65 | 20 6d 69 73 63 64 20 66 |tall the| miscd f|
|00002cb0| 72 6f 6e 74 20 65 6e 64 | 0a 69 6e 74 6f 20 74 68 |ront end|.into th|
|00002cc0| 65 20 6f 72 69 67 69 6e | 61 6c 20 6d 69 73 63 64 |e origin|al miscd|
|00002cd0| 20 6c 6f 63 61 74 69 6f | 6e 2e 0a 0a 43 6f 6e 66 | locatio|n...Conf|
|00002ce0| 69 67 75 72 61 74 69 6f | 6e 20 61 6e 64 20 69 6e |iguratio|n and in|
|00002cf0| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 28 74 68 65 20 |stallati|on (the |
|00002d00| 61 64 76 61 6e 63 65 64 | 20 77 61 79 29 3a 0a 2d |advanced| way):.-|
|00002d10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d40| 2d 0a 0a 49 6e 73 74 65 | 61 64 20 6f 66 20 6d 6f |-..Inste|ad of mo|
|00002d50| 76 69 6e 67 20 74 68 65 | 20 76 65 6e 64 6f 72 2d |ving the| vendor-|
|00002d60| 70 72 6f 76 69 64 65 64 | 20 64 61 65 6d 6f 6e 73 |provided| daemons|
|00002d70| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 64 69 72 65 | to anot|her dire|
|00002d80| 63 74 6f 72 79 2c 0a 64 | 65 66 69 6e 65 20 74 68 |ctory,.d|efine th|
|00002d90| 65 20 52 45 41 4c 5f 44 | 41 45 4d 4f 4e 5f 44 49 |e REAL_D|AEMON_DI|
|00002da0| 52 20 74 6f 20 72 65 66 | 6c 65 63 74 20 74 68 65 |R to ref|lect the|
|00002db0| 20 70 72 65 73 65 6e 74 | 20 6c 6f 63 61 74 69 6f | present| locatio|
|00002dc0| 6e 20 6f 66 20 74 68 6f | 73 65 0a 64 61 65 6d 6f |n of tho|se.daemo|
|00002dd0| 6e 73 2c 20 61 6e 64 20 | 69 6e 73 74 61 6c 6c 20 |ns, and |install |
|00002de0| 74 68 65 20 74 63 70 64 | 20 63 6f 6d 6d 61 6e 64 |the tcpd| command|
|00002df0| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 64 69 72 | in the |same dir|
|00002e00| 65 63 74 6f 72 79 2e 20 | 54 68 65 6e 20 64 6f 0a |ectory. |Then do.|
|00002e10| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 64 |the foll|owing ed|
|00002e20| 69 74 73 20 74 6f 20 74 | 68 65 20 69 6e 65 74 64 |its to t|he inetd|
|00002e30| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 66 | configu|ration f|
|00002e40| 69 6c 65 20 28 75 73 75 | 61 6c 6c 79 20 69 6e 0a |ile (usu|ally in.|
|00002e50| 2f 65 74 63 2f 69 6e 65 | 74 64 2e 63 6f 6e 66 29 |/etc/ine|td.conf)|
|00002e60| 3a 0a 0a 20 20 20 20 74 | 65 6c 6e 65 74 20 20 73 |:.. t|elnet s|
|00002e70| 74 72 65 61 6d 20 20 74 | 63 70 20 20 20 20 20 6e |tream t|cp n|
|00002e80| 6f 77 61 69 74 20 20 72 | 6f 6f 74 20 20 20 20 2f |owait r|oot /|
|00002e90| 75 73 72 2f 65 74 63 2f | 69 6e 2e 74 65 6c 6e 65 |usr/etc/|in.telne|
|00002ea0| 74 64 20 20 20 20 20 69 | 6e 2e 74 65 6c 6e 65 74 |td i|n.telnet|
|00002eb0| 64 0a 0a 62 65 63 6f 6d | 65 73 3a 0a 0a 20 20 20 |d..becom|es:.. |
|00002ec0| 20 74 65 6c 6e 65 74 20 | 20 73 74 72 65 61 6d 20 | telnet | stream |
|00002ed0| 20 74 63 70 20 20 20 20 | 20 6e 6f 77 61 69 74 20 | tcp | nowait |
|00002ee0| 20 72 6f 6f 74 20 20 20 | 20 2f 75 73 72 2f 65 74 | root | /usr/et|
|00002ef0| 63 2f 74 63 70 64 20 20 | 20 20 20 20 20 20 20 20 |c/tcpd | |
|00002f00| 20 69 6e 2e 74 65 6c 6e | 65 74 64 0a 0a 28 74 68 | in.teln|etd..(th|
|00002f10| 65 20 65 78 61 6d 70 6c | 65 20 61 70 70 6c 69 65 |e exampl|e applie|
|00002f20| 73 20 74 6f 20 53 75 6e | 4f 53 20 34 2e 78 3b 20 |s to Sun|OS 4.x; |
|00002f30| 6f 74 68 65 72 20 55 4e | 49 58 20 69 6d 70 6c 65 |other UN|IX imple|
|00002f40| 6d 65 6e 74 61 74 69 6f | 6e 73 20 73 68 6f 75 6c |mentatio|ns shoul|
|00002f50| 64 0a 6e 6f 74 20 64 69 | 66 66 65 72 20 6d 75 63 |d.not di|ffer muc|
|00002f60| 68 29 2e 20 53 69 6d 69 | 6c 61 72 20 63 68 61 6e |h). Simi|lar chan|
|00002f70| 67 65 73 20 77 69 6c 6c | 20 62 65 20 6e 65 65 64 |ges will| be need|
|00002f80| 65 64 20 66 6f 72 20 74 | 68 65 20 6f 74 68 65 72 |ed for t|he other|
|00002f90| 20 73 65 72 76 69 63 65 | 73 0a 74 68 61 74 20 61 | service|s.that a|
|00002fa0| 72 65 20 74 6f 20 62 65 | 20 63 6f 76 65 72 65 64 |re to be| covered|
|00002fb0| 20 62 79 20 74 68 65 20 | 74 63 70 64 20 66 72 6f | by the |tcpd fro|
|00002fc0| 6e 74 2d 65 6e 64 20 70 | 72 6f 67 72 61 6d 2e 0a |nt-end p|rogram..|
|00002fd0| 0a 41 70 6f 6c 6c 6f 20 | 55 4e 49 58 20 75 73 65 |.Apollo |UNIX use|
|00002fe0| 72 73 20 77 69 6c 6c 20 | 77 61 6e 74 20 74 6f 20 |rs will |want to |
|00002ff0| 69 6e 73 74 61 6c 6c 20 | 74 68 65 20 66 72 6f 6e |install |the fron|
|00003000| 74 20 65 6e 64 20 75 6e | 64 65 72 20 61 20 64 69 |t end un|der a di|
|00003010| 66 66 65 72 65 6e 74 0a | 6e 61 6d 65 20 62 65 63 |fferent.|name bec|
|00003020| 61 75 73 65 20 74 63 70 | 64 20 69 73 20 74 68 65 |ause tcp|d is the|
|00003030| 20 6e 61 6d 65 20 6f 66 | 20 61 6e 20 61 6c 72 65 | name of| an alre|
|00003040| 61 64 79 20 65 78 69 73 | 74 69 6e 67 20 63 6f 6d |ady exis|ting com|
|00003050| 6d 61 6e 64 2e 20 41 20 | 73 75 69 74 61 62 6c 65 |mand. A |suitable|
|00003060| 20 0a 6e 61 6d 65 20 66 | 6f 72 20 74 68 65 20 66 | .name f|or the f|
|00003070| 72 6f 6e 74 2d 65 6e 64 | 20 70 72 6f 67 72 61 6d |ront-end| program|
|00003080| 20 77 6f 75 6c 64 20 62 | 65 20 22 66 72 6f 6e 74 | would b|e "front|
|00003090| 64 22 2e 0a 0a 54 68 65 | 20 73 61 6d 65 20 74 72 |d"...The| same tr|
|000030a0| 69 63 6b 20 63 61 6e 20 | 62 65 20 70 6c 61 79 65 |ick can |be playe|
|000030b0| 64 20 77 69 74 68 20 74 | 68 65 20 55 6c 74 72 69 |d with t|he Ultri|
|000030c0| 78 20 6d 69 73 63 64 20 | 64 61 65 6d 6f 6e 20 62 |x miscd |daemon b|
|000030d0| 75 74 20 74 68 65 6e 20 | 74 68 65 0a 64 61 65 6d |ut then |the.daem|
|000030e0| 6f 6e 20 66 72 6f 6e 74 | 20 65 6e 64 20 77 69 6c |on front| end wil|
|000030f0| 6c 20 68 61 76 65 20 74 | 6f 20 62 65 20 69 6e 73 |l have t|o be ins|
|00003100| 74 61 6c 6c 65 64 20 75 | 6e 64 65 72 20 61 20 64 |talled u|nder a d|
|00003110| 69 66 66 65 72 65 6e 74 | 20 6e 61 6d 65 2e 0a 0a |ifferent| name...|
|00003120| 41 63 6b 6e 6f 77 6c 65 | 64 67 65 6d 65 6e 74 73 |Acknowle|dgements|
|00003130| 3a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |:.------|--------|
|00003140| 2d 2d 2d 0a 0a 54 68 61 | 6e 6b 73 20 74 6f 20 42 |---..Tha|nks to B|
|00003150| 72 65 6e 64 61 6e 20 4b | 65 68 6f 65 20 28 62 72 |rendan K|ehoe (br|
|00003160| 65 6e 64 61 6e 40 63 73 | 2e 77 69 64 65 6e 65 72 |endan@cs|.widener|
|00003170| 2e 65 64 75 29 2c 20 48 | 65 69 6d 69 72 20 53 76 |.edu), H|eimir Sv|
|00003180| 65 72 72 69 73 73 6f 6e | 0a 28 68 65 69 6d 69 72 |errisson|.(heimir|
|00003190| 40 68 61 66 72 6f 2e 69 | 73 29 20 61 6e 64 20 44 |@hafro.i|s) and D|
|000031a0| 61 6e 20 42 65 72 6e 73 | 74 65 69 6e 20 28 62 72 |an Berns|tein (br|
|000031b0| 6e 73 74 6e 64 40 6b 72 | 61 6d 64 65 6e 2e 61 63 |nstnd@kr|amden.ac|
|000031c0| 66 2e 6e 79 75 2e 65 64 | 75 29 20 66 6f 72 0a 66 |f.nyu.ed|u) for.f|
|000031d0| 65 65 64 62 61 63 6b 20 | 6f 6e 20 61 6e 20 65 61 |eedback |on an ea|
|000031e0| 72 6c 69 65 72 20 72 65 | 6c 65 61 73 65 20 6f 66 |rlier re|lease of|
|000031f0| 20 74 68 69 73 20 70 72 | 6f 64 75 63 74 2e 20 20 | this pr|oduct. |
|00003200| 54 68 61 6e 6b 73 20 74 | 6f 20 4a 6f 68 6e 20 4b |Thanks t|o John K|
|00003210| 69 6d 62 61 6c 6c 0a 28 | 6a 6b 69 6d 62 61 6c 6c |imball.(|jkimball|
|00003220| 40 73 72 63 2e 68 6f 6e | 65 79 77 65 6c 6c 2e 63 |@src.hon|eywell.c|
|00003230| 6f 6d 29 20 66 6f 72 20 | 73 75 67 67 65 73 74 69 |om) for |suggesti|
|00003240| 6e 67 20 74 68 65 20 68 | 6f 73 74 20 6e 61 6d 65 |ng the h|ost name|
|00003250| 20 74 6f 20 68 6f 73 74 | 0a 61 64 64 72 65 73 73 | to host|.address|
|00003260| 20 6d 61 70 70 69 6e 67 | 20 63 68 65 63 6b 2e 20 | mapping| check. |
|00003270| 57 69 6c 6c 65 6d 2d 4a | 61 6e 20 57 69 74 68 61 |Willem-J|an Witha|
|00003280| 67 65 6e 20 28 77 6a 77 | 40 65 62 2e 65 6c 65 2e |gen (wjw|@eb.ele.|
|00003290| 74 75 65 2e 6e 6c 29 20 | 70 72 6f 76 69 64 65 64 |tue.nl) |provided|
|000032a0| 0a 75 73 65 66 75 6c 20 | 69 6e 66 6f 72 6d 61 74 |.useful |informat|
|000032b0| 69 6f 6e 20 6f 6e 20 68 | 6f 77 20 74 6f 20 64 65 |ion on h|ow to de|
|000032c0| 61 6c 20 77 69 74 68 20 | 74 68 65 20 41 70 6f 6c |al with |the Apol|
|000032d0| 6c 6f 20 55 4e 49 58 20 | 65 6e 76 69 72 6f 6e 6d |lo UNIX |environm|
|000032e0| 65 6e 74 2e 0a 0a 09 57 | 69 65 74 73 65 20 56 65 |ent....W|ietse Ve|
|000032f0| 6e 65 6d 61 20 28 77 69 | 65 74 73 65 40 77 7a 76 |nema (wi|etse@wzv|
|00003300| 2e 77 69 6e 2e 74 75 65 | 2e 6e 6c 29 2c 0a 09 4d |.win.tue|.nl),..M|
|00003310| 61 74 68 65 6d 61 74 69 | 63 73 20 61 6e 64 20 43 |athemati|cs and C|
|00003320| 6f 6d 70 75 74 69 6e 67 | 20 53 63 69 65 6e 63 65 |omputing| Science|
|00003330| 2c 0a 09 45 69 6e 64 68 | 6f 76 65 6e 20 55 6e 69 |,..Eindh|oven Uni|
|00003340| 76 65 72 73 69 74 79 20 | 6f 66 20 54 65 63 68 6e |versity |of Techn|
|00003350| 6f 6c 6f 67 79 2c 0a 09 | 54 68 65 20 4e 65 74 68 |ology,..|The Neth|
|00003360| 65 72 6c 61 6e 64 73 2e | 0a 00 00 00 00 00 00 00 |erlands.|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 52 45 41 44 4d 45 2e 55 | 4f 43 00 00 00 00 00 00 |README.U|OC......|
|00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 31 33 |.... 6|00 . 13|
|00003470| 31 31 20 00 20 20 20 34 | 31 36 20 00 20 20 20 20 |11 . 4|16 . |
|00003480| 20 20 20 31 33 31 37 20 | 20 35 30 36 36 30 30 35 | 1317 | 5066005|
|00003490| 37 32 30 20 20 20 35 34 | 34 35 00 20 00 00 00 00 |720 54|45. ....|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 0a 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 63 61 |.This pr|ogram ca|
|00003610| 6e 20 61 6c 73 6f 20 62 | 65 20 75 73 65 64 20 74 |n also b|e used t|
|00003620| 6f 20 68 65 6c 70 20 63 | 6f 6e 74 72 6f 6c 20 53 |o help c|ontrol S|
|00003630| 4d 54 50 20 61 63 63 65 | 73 73 2e 0a 0a 46 69 72 |MTP acce|ss...Fir|
|00003640| 73 74 20 6f 66 66 2c 20 | 64 75 65 20 74 6f 20 74 |st off, |due to t|
|00003650| 68 65 20 77 61 79 20 74 | 63 70 64 20 69 73 20 77 |he way t|cpd is w|
|00003660| 72 69 74 74 65 6e 2c 20 | 69 74 20 6c 6f 6f 6b 73 |ritten, |it looks|
|00003670| 20 66 6f 72 20 69 74 73 | 20 63 6f 6e 74 72 6f 6c | for its| control|
|00003680| 6c 61 62 6c 65 20 64 65 | 61 6d 6f 6e 73 20 69 6e |lable de|amons in|
|00003690| 20 2f 75 73 72 2f 65 74 | 63 2c 20 73 6f 20 63 6f | /usr/et|c, so co|
|000036a0| 70 79 20 2f 75 73 72 2f | 6c 69 62 2f 73 65 6e 64 |py /usr/|lib/send|
|000036b0| 6d 61 69 6c 20 74 6f 20 | 2f 75 73 72 2f 65 74 63 |mail to |/usr/etc|
|000036c0| 2e 0a 0a 54 68 65 6e 20 | 6a 75 73 74 20 65 64 69 |...Then |just edi|
|000036d0| 74 20 72 63 2e 6c 6f 63 | 61 6c 20 61 6e 64 20 74 |t rc.loc|al and t|
|000036e0| 61 6b 65 20 6f 75 74 20 | 74 68 65 20 63 61 6c 6c |ake out |the call|
|000036f0| 20 66 6f 72 20 73 65 6e | 64 6d 61 69 6c 2c 20 65 | for sen|dmail, e|
|00003700| 64 69 74 20 69 6e 65 74 | 64 2e 63 6f 6e 66 20 61 |dit inet|d.conf a|
|00003710| 6e 64 0a 20 61 64 64 20 | 61 6e 20 65 6e 74 72 79 |nd. add |an entry|
|00003720| 20 66 6f 72 20 73 6d 74 | 70 20 6c 69 6b 65 3a 0a | for smt|p like:.|
|00003730| 0a 73 6d 74 70 20 73 74 | 72 65 61 6d 20 74 63 70 |.smtp st|ream tcp|
|00003740| 20 6e 6f 77 61 69 74 20 | 72 6f 6f 74 20 2f 75 73 | nowait |root /us|
|00003750| 72 2f 65 74 63 2f 74 63 | 70 64 20 73 65 6e 64 6d |r/etc/tc|pd sendm|
|00003760| 61 69 6c 20 2d 62 73 20 | 0a 0a 74 68 65 6e 20 72 |ail -bs |..then r|
|00003770| 65 73 74 61 72 74 20 69 | 6e 65 74 64 20 77 69 74 |estart i|netd wit|
|00003780| 68 20 61 20 27 6b 69 6c | 6c 20 2d 31 27 20 6f 6e |h a 'kil|l -1' on|
|00003790| 20 69 74 73 20 50 49 44 | 0a 0a 54 68 69 73 20 6f | its PID|..This o|
|000037a0| 6e 6c 79 20 74 61 6b 65 | 73 20 63 61 72 65 20 6f |nly take|s care o|
|000037b0| 66 20 74 68 65 20 69 6e | 63 6f 6d 69 6e 67 20 73 |f the in|coming s|
|000037c0| 6d 74 70 20 70 72 6f 63 | 65 73 73 2e 20 54 6f 20 |mtp proc|ess. To |
|000037d0| 61 6c 6c 6f 77 20 66 6f | 72 20 71 75 65 75 65 64 |allow fo|r queued|
|000037e0| 20 6d 65 73 73 61 67 65 | 73 0a 20 74 6f 20 62 65 | message|s. to be|
|000037f0| 20 64 65 6c 69 76 65 72 | 65 64 2c 20 65 6e 74 65 | deliver|ed, ente|
|00003800| 72 20 63 72 6f 6e 74 61 | 62 20 66 6f 72 20 72 6f |r cronta|b for ro|
|00003810| 6f 74 2c 20 61 6e 64 20 | 61 64 64 20 61 6e 20 65 |ot, and |add an e|
|00003820| 6e 74 72 79 20 6c 69 6b | 65 2e 2e 2e 0a 0a 30 2c |ntry lik|e.....0,|
|00003830| 31 35 2c 33 30 2c 34 35 | 20 2a 20 2a 20 2a 20 2a |15,30,45| * * * *|
|00003840| 20 2f 75 73 72 2f 65 74 | 63 2f 73 65 6e 64 6d 61 | /usr/et|c/sendma|
|00003850| 69 6c 20 2d 71 0a 0a 54 | 68 69 73 20 77 69 6c 6c |il -q..T|his will|
|00003860| 20 61 6c 6c 6f 77 20 6d | 61 69 6c 20 74 6f 20 74 | allow m|ail to t|
|00003870| 72 79 20 74 6f 20 73 65 | 6e 64 20 71 75 65 75 65 |ry to se|nd queue|
|00003880| 64 20 6d 65 73 73 61 67 | 65 73 20 69 6d 6d 65 64 |d messag|es immed|
|00003890| 69 61 74 65 6c 79 2c 20 | 61 6e 64 20 74 68 65 6e |iately, |and then|
|000038a0| 20 65 76 65 72 79 20 31 | 35 20 6d 69 6e 75 74 65 | every 1|5 minute|
|000038b0| 73 20 61 66 74 65 72 77 | 61 72 64 20 75 6e 74 69 |s afterw|ard unti|
|000038c0| 6c 20 64 65 6c 69 76 65 | 72 65 64 2e 0a 0a 0a 77 |l delive|red....w|
|000038d0| 61 79 22 20 72 65 63 69 | 70 65 0a 72 65 71 75 69 |ay" reci|pe.requi|
|000038e0| 72 65 73 20 6e 6f 20 63 | 68 61 6e 67 65 73 20 74 |res no c|hanges t|
|000038f0| 6f 20 65 78 69 73 74 69 | 6e 67 20 73 6f 66 74 77 |o existi|ng softw|
|00003900| 61 72 65 20 6f 72 20 63 | 6f 6e 66 69 67 75 72 61 |are or c|onfigura|
|00003910| 74 69 6f 6e 20 66 69 6c | 65 73 2e 0a 0a 49 66 20 |tion fil|es...If |
|00003920| 79 6f 75 20 64 6f 6e 27 | 74 20 72 75 6e 20 55 6c |you don'|t run Ul|
|00003930| 74 72 69 78 2c 20 79 6f | 75 20 64 6f 6e 27 74 20 |trix, yo|u don't |
|00003940| 6e 65 65 64 20 74 68 65 | 20 6d 69 73 63 64 20 66 |need the| miscd f|
|00003950| 72 6f 6e 74 2d 65 6e 64 | 20 70 72 6f 67 72 61 6d |ront-end| program|
|00003960| 2e 0a 54 68 65 20 55 6c | 74 72 69 78 20 6d 69 73 |..The Ul|trix mis|
|00003970| 63 64 20 64 61 65 6d 6f | 6e 20 69 6d 70 6c 65 6d |cd daemo|n implem|
|00003980| 65 6e 74 73 20 61 6d 6f | 6e 67 20 6f 74 68 65 72 |ents amo|ng other|
|00003990| 73 20 74 68 65 20 53 59 | 53 54 41 54 20 73 65 72 |s the SY|STAT ser|
|000039a0| 76 69 63 65 2c 0a 77 68 | 69 63 68 20 70 69 70 65 |vice,.wh|ich pipe|
|000039b0| 73 20 74 68 65 20 6f 75 | 74 70 75 74 20 66 72 6f |s the ou|tput fro|
|000039c0| 6d 20 74 68 65 20 57 48 | 4f 20 63 6f 6d 6d 61 6e |m the WH|O comman|
|000039d0| 64 20 74 6f 20 73 74 61 | 6e 64 61 72 64 20 6f 75 |d to sta|ndard ou|
|000039e0| 74 70 75 74 2e 0a 0a 42 | 79 20 64 65 66 61 75 6c |tput...B|y defaul|
|000039f0| 74 2c 20 74 68 65 20 66 | 72 6f 6e 74 2d 65 6e 64 |t, the f|ront-end|
|00003a00| 66 72 6f 6d 68 6f 73 74 | 2e 63 00 00 00 00 00 00 |fromhost|.c......|
|00003a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 31 33 |.... 6|00 . 13|
|00003a70| 31 31 20 00 20 20 20 34 | 31 36 20 00 20 20 20 20 |11 . 4|16 . |
|00003a80| 20 20 20 37 36 31 36 20 | 20 35 30 33 35 37 30 30 | 7616 | 5035700|
|00003a90| 33 33 37 20 20 20 36 31 | 35 37 00 20 00 00 00 00 |337 61|57. ....|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 20 2f 2a 0a 20 20 2a 20 | 66 72 6f 6d 68 6f 73 74 | /*. * |fromhost|
|00003c10| 28 29 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |() retur|ns the n|
|00003c20| 61 6d 65 20 6f 66 20 74 | 68 65 20 68 6f 73 74 20 |ame of t|he host |
|00003c30| 61 74 20 74 68 65 20 6f | 74 68 65 72 20 65 6e 64 |at the o|ther end|
|00003c40| 20 6f 66 20 73 74 61 6e | 64 61 72 64 0a 20 20 2a | of stan|dard. *|
|00003c50| 20 69 6e 70 75 74 2c 20 | 74 68 65 20 68 6f 73 74 | input, |the host|
|00003c60| 20 61 64 64 72 65 73 73 | 20 69 66 20 6e 61 6d 65 | address| if name|
|00003c70| 20 6c 6f 6f 6b 75 70 20 | 66 61 69 6c 73 2c 20 22 | lookup |fails, "|
|00003c80| 73 74 64 69 6e 22 20 69 | 66 20 69 74 20 69 73 20 |stdin" i|f it is |
|00003c90| 63 6f 6e 6e 65 63 74 65 | 64 0a 20 20 2a 20 74 6f |connecte|d. * to|
|00003ca0| 20 61 20 74 65 72 6d 69 | 6e 61 6c 2c 20 6f 72 20 | a termi|nal, or |
|00003cb0| 61 20 6e 75 6c 6c 20 70 | 6f 69 6e 74 65 72 20 69 |a null p|ointer i|
|00003cc0| 6e 20 61 6c 6c 20 6f 74 | 68 65 72 20 63 61 73 65 |n all ot|her case|
|00003cd0| 73 2e 0a 20 20 2a 20 0a | 20 20 2a 20 50 72 6f 74 |s.. * .| * Prot|
|00003ce0| 65 63 74 69 6f 6e 20 61 | 67 61 69 6e 73 74 20 73 |ection a|gainst s|
|00003cf0| 70 6f 6f 66 69 6e 67 20 | 6f 66 20 6e 61 69 76 65 |poofing |of naive|
|00003d00| 20 72 73 68 20 61 6e 64 | 20 72 6c 6f 67 69 6e 64 | rsh and| rlogind|
|00003d10| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 73 | impleme|ntations|
|00003d20| 3a 0a 20 20 2a 20 0a 20 | 20 2a 20 49 6e 69 74 69 |:. * . | * Initi|
|00003d30| 61 6c 6c 79 2c 20 61 6c | 6c 20 77 65 20 68 61 76 |ally, al|l we hav|
|00003d40| 65 20 69 73 20 74 68 65 | 20 72 65 6d 6f 74 65 20 |e is the| remote |
|00003d50| 68 6f 73 74 20 61 64 64 | 72 65 73 73 2e 20 49 66 |host add|ress. If|
|00003d60| 20 74 68 65 20 68 6f 73 | 74 20 61 64 64 72 65 73 | the hos|t addres|
|00003d70| 73 2d 3e 6e 61 6d 65 0a | 20 20 2a 20 6d 61 70 70 |s->name.| * mapp|
|00003d80| 69 6e 67 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |ing is a|vailable|
|00003d90| 2c 20 66 72 6f 6d 68 6f | 73 74 28 29 20 76 65 72 |, fromho|st() ver|
|00003da0| 69 66 69 65 73 20 74 68 | 61 74 20 74 68 65 20 68 |ifies th|at the h|
|00003db0| 6f 73 74 20 6e 61 6d 65 | 2d 3e 61 64 64 72 65 73 |ost name|->addres|
|00003dc0| 73 0a 20 20 2a 20 6d 61 | 70 70 69 6e 67 20 79 69 |s. * ma|pping yi|
|00003dd0| 65 6c 64 73 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |elds the| origina|
|00003de0| 6c 20 68 6f 73 74 20 61 | 64 64 72 65 73 73 2e 20 |l host a|ddress. |
|00003df0| 54 68 65 20 69 64 65 61 | 20 69 73 20 74 68 61 74 |The idea| is that|
|00003e00| 20 69 74 20 69 73 20 6d | 75 63 68 0a 20 20 2a 20 | it is m|uch. * |
|00003e10| 65 61 73 69 65 72 20 74 | 6f 20 63 6f 6d 70 72 6f |easier t|o compro|
|00003e20| 6d 69 73 65 20 73 6f 6d | 65 20 72 61 6e 64 6f 6d |mise som|e random|
|00003e30| 20 61 64 64 72 65 73 73 | 2d 3e 6e 61 6d 65 20 6d | address|->name m|
|00003e40| 61 70 20 28 62 65 63 61 | 75 73 65 20 74 68 65 72 |ap (beca|use ther|
|00003e50| 65 20 69 73 20 6f 6e 65 | 0a 20 20 2a 20 66 6f 72 |e is one|. * for|
|00003e60| 20 61 6c 6d 6f 73 74 20 | 65 76 65 72 79 20 6e 65 | almost |every ne|
|00003e70| 74 77 6f 72 6b 29 2c 20 | 74 68 61 6e 20 74 6f 20 |twork), |than to |
|00003e80| 63 6f 6d 70 72 6f 6d 69 | 73 65 20 74 68 65 20 6e |compromi|se the n|
|00003e90| 61 6d 65 2d 3e 61 64 64 | 72 65 73 73 20 6d 61 70 |ame->add|ress map|
|00003ea0| 20 74 68 61 74 0a 20 20 | 2a 20 69 73 20 75 6e 69 | that. |* is uni|
|00003eb0| 71 75 65 20 66 6f 72 20 | 79 6f 75 72 20 69 6e 74 |que for |your int|
|00003ec0| 65 72 6e 65 74 20 64 6f | 6d 61 69 6e 2e 0a 20 20 |ernet do|main.. |
|00003ed0| 2a 20 0a 20 20 2a 20 41 | 6e 79 77 61 79 2c 20 69 |* . * A|nyway, i|
|00003ee0| 66 20 74 68 65 20 74 65 | 73 74 20 66 61 69 6c 73 |f the te|st fails|
|00003ef0| 2c 20 66 72 6f 6d 68 6f | 73 74 28 29 20 65 69 74 |, fromho|st() eit|
|00003f00| 68 65 72 20 64 72 6f 70 | 73 20 74 68 65 20 63 6f |her drop|s the co|
|00003f10| 6e 6e 65 63 74 69 6f 6e | 20 28 77 68 65 6e 0a 20 |nnection| (when. |
|00003f20| 20 2a 20 63 6f 6d 70 69 | 6c 65 64 20 77 69 74 68 | * compi|led with|
|00003f30| 20 2d 44 50 41 52 41 4e | 4f 49 44 29 20 6f 72 20 | -DPARAN|OID) or |
|00003f40| 6a 75 73 74 20 72 65 74 | 75 72 6e 73 20 74 68 65 |just ret|urns the|
|00003f50| 20 72 65 6d 6f 74 65 20 | 68 6f 73 74 20 61 64 64 | remote |host add|
|00003f60| 72 65 73 73 20 69 6e 73 | 74 65 61 64 0a 20 20 2a |ress ins|tead. *|
|00003f70| 20 6f 66 20 74 68 65 20 | 62 61 64 20 72 65 6d 6f | of the |bad remo|
|00003f80| 74 65 20 68 6f 73 74 20 | 6e 61 6d 65 20 28 6e 6f |te host |name (no|
|00003f90| 74 20 63 6f 6d 70 69 6c | 65 64 20 77 69 74 68 20 |t compil|ed with |
|00003fa0| 2d 44 50 41 52 41 4e 4f | 49 44 29 2e 0a 20 20 2a |-DPARANO|ID).. *|
|00003fb0| 20 0a 20 20 2a 20 44 69 | 61 67 6e 6f 73 74 69 63 | . * Di|agnostic|
|00003fc0| 73 20 61 72 65 20 72 65 | 70 6f 72 74 65 64 20 74 |s are re|ported t|
|00003fd0| 68 72 6f 75 67 68 20 73 | 79 73 6c 6f 67 28 33 29 |hrough s|yslog(3)|
|00003fe0| 2e 0a 20 20 2a 20 0a 20 | 20 2a 20 41 75 74 68 6f |.. * . | * Autho|
|00003ff0| 72 3a 20 57 69 65 74 73 | 65 20 56 65 6e 65 6d 61 |r: Wiets|e Venema|
|00004000| 2c 20 45 69 6e 64 68 6f | 76 65 6e 20 55 6e 69 76 |, Eindho|ven Univ|
|00004010| 65 72 73 69 74 79 20 6f | 66 20 54 65 63 68 6e 6f |ersity o|f Techno|
|00004020| 6c 6f 67 79 2c 20 54 68 | 65 20 4e 65 74 68 65 72 |logy, Th|e Nether|
|00004030| 6c 61 6e 64 73 2e 0a 20 | 20 2a 2f 0a 0a 23 69 66 |lands.. | */..#if|
|00004040| 6e 64 65 66 20 6c 69 6e | 74 0a 73 74 61 74 69 63 |ndef lin|t.static|
|00004050| 20 63 68 61 72 20 73 63 | 63 73 69 64 5b 5d 20 3d | char sc|csid[] =|
|00004060| 20 22 40 28 23 29 20 66 | 72 6f 6d 68 6f 73 74 2e | "@(#) f|romhost.|
|00004070| 63 20 31 2e 32 20 39 31 | 2f 30 35 2f 32 30 20 31 |c 1.2 91|/05/20 1|
|00004080| 33 3a 32 38 3a 30 31 22 | 3b 0a 23 65 6e 64 69 66 |3:28:01"|;.#endif|
|00004090| 0a 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |..#inclu|de <stdi|
|000040a0| 6f 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |o.h>.#in|clude <s|
|000040b0| 79 73 2f 74 79 70 65 73 | 2e 68 3e 0a 23 69 6e 63 |ys/types|.h>.#inc|
|000040c0| 6c 75 64 65 20 3c 73 79 | 73 2f 70 61 72 61 6d 2e |lude <sy|s/param.|
|000040d0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |h>.#incl|ude <sys|
|000040e0| 2f 73 6f 63 6b 65 74 2e | 68 3e 0a 23 69 6e 63 6c |/socket.|h>.#incl|
|000040f0| 75 64 65 20 3c 73 79 73 | 6c 6f 67 2e 68 3e 0a 23 |ude <sys|log.h>.#|
|00004100| 69 6e 63 6c 75 64 65 20 | 3c 6e 65 74 69 6e 65 74 |include |<netinet|
|00004110| 2f 69 6e 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |/in.h>.#|include |
|00004120| 3c 6e 65 74 64 62 2e 68 | 3e 0a 0a 23 69 66 6e 64 |<netdb.h|>..#ifnd|
|00004130| 65 66 20 4d 41 58 48 4f | 53 54 4e 41 4d 45 4c 45 |ef MAXHO|STNAMELE|
|00004140| 4e 0a 23 64 65 66 69 6e | 65 20 4d 41 58 48 4f 53 |N.#defin|e MAXHOS|
|00004150| 54 4e 41 4d 45 4c 45 4e | 09 42 55 46 53 49 5a 0a |TNAMELEN|.BUFSIZ.|
|00004160| 23 65 6e 64 69 66 0a 0a | 2f 2a 20 54 68 65 20 66 |#endif..|/* The f|
|00004170| 6f 6c 6c 6f 77 69 6e 67 | 20 61 72 65 20 74 6f 20 |ollowing| are to |
|00004180| 62 65 20 75 73 65 64 20 | 69 6e 20 61 73 73 69 67 |be used |in assig|
|00004190| 6e 6d 65 6e 74 20 63 6f | 6e 74 65 78 74 2c 20 6e |nment co|ntext, n|
|000041a0| 6f 74 20 69 6e 20 63 6f | 6d 70 61 72 69 73 6f 6e |ot in co|mparison|
|000041b0| 73 20 2a 2f 0a 0a 23 64 | 65 66 69 6e 65 09 47 4f |s */..#d|efine.GO|
|000041c0| 4f 44 09 31 0a 23 64 65 | 66 69 6e 65 09 42 41 44 |OD.1.#de|fine.BAD|
|000041d0| 09 30 0a 0a 2f 2a 20 66 | 72 6f 6d 68 6f 73 74 20 |.0../* f|romhost |
|000041e0| 2d 20 66 69 6e 64 20 6f | 75 74 20 77 68 61 74 20 |- find o|ut what |
|000041f0| 69 73 20 61 74 20 74 68 | 65 20 6f 74 68 65 72 20 |is at th|e other |
|00004200| 65 6e 64 20 6f 66 20 73 | 74 61 6e 64 61 72 64 20 |end of s|tandard |
|00004210| 69 6e 70 75 74 20 2a 2f | 0a 0a 63 68 61 72 20 20 |input */|..char |
|00004220| 20 2a 66 72 6f 6d 68 6f | 73 74 28 29 0a 7b 0a 20 | *fromho|st().{. |
|00004230| 20 20 20 73 74 72 75 63 | 74 20 73 6f 63 6b 61 64 | struc|t sockad|
|00004240| 64 72 20 73 61 3b 0a 20 | 20 20 20 73 74 72 75 63 |dr sa;. | struc|
|00004250| 74 20 73 6f 63 6b 61 64 | 64 72 5f 69 6e 20 2a 73 |t sockad|dr_in *s|
|00004260| 69 6e 20 3d 20 28 73 74 | 72 75 63 74 20 73 6f 63 |in = (st|ruct soc|
|00004270| 6b 61 64 64 72 5f 69 6e | 20 2a 29 20 28 26 73 61 |kaddr_in| *) (&sa|
|00004280| 29 3b 0a 20 20 20 20 73 | 74 72 75 63 74 20 68 6f |);. s|truct ho|
|00004290| 73 74 65 6e 74 20 2a 68 | 70 3b 0a 20 20 20 20 69 |stent *h|p;. i|
|000042a0| 6e 74 20 20 20 20 20 73 | 6f 63 6b 74 20 3d 20 66 |nt s|ockt = f|
|000042b0| 69 6c 65 6e 6f 28 73 74 | 64 69 6e 29 3b 0a 20 20 |ileno(st|din);. |
|000042c0| 20 20 69 6e 74 20 20 20 | 20 20 6c 65 6e 67 74 68 | int | length|
|000042d0| 20 3d 20 73 69 7a 65 6f | 66 28 73 61 29 3b 0a 20 | = sizeo|f(sa);. |
|000042e0| 20 20 20 73 74 61 74 69 | 63 20 63 68 61 72 20 72 | stati|c char r|
|000042f0| 65 6d 6f 74 65 68 6f 73 | 74 5b 4d 41 58 48 4f 53 |emotehos|t[MAXHOS|
|00004300| 54 4e 41 4d 45 4c 45 4e | 20 2b 20 31 5d 3b 0a 20 |TNAMELEN| + 1];. |
|00004310| 20 20 20 63 68 61 72 20 | 20 20 2a 69 6e 65 74 5f | char | *inet_|
|00004320| 6e 74 6f 61 28 29 3b 0a | 20 20 20 20 63 68 61 72 |ntoa();.| char|
|00004330| 20 20 20 2a 73 74 72 6e | 63 70 79 28 29 3b 0a 0a | *strn|cpy();..|
|00004340| 20 20 20 20 2f 2a 20 54 | 72 79 20 74 6f 20 62 65 | /* T|ry to be|
|00004350| 20 73 6d 61 72 74 20 69 | 66 20 73 74 61 6e 64 61 | smart i|f standa|
|00004360| 72 64 20 69 6e 70 75 74 | 20 69 73 20 6e 6f 74 20 |rd input| is not |
|00004370| 63 6f 6e 6e 65 63 74 65 | 64 20 74 6f 20 61 20 73 |connecte|d to a s|
|00004380| 6f 63 6b 65 74 2e 20 2a | 2f 0a 0a 20 20 20 20 69 |ocket. *|/.. i|
|00004390| 66 20 28 67 65 74 70 65 | 65 72 6e 61 6d 65 28 73 |f (getpe|ername(s|
|000043a0| 6f 63 6b 74 2c 20 26 73 | 61 2c 20 26 6c 65 6e 67 |ockt, &s|a, &leng|
|000043b0| 74 68 29 20 3c 20 30 29 | 20 7b 0a 09 69 66 20 28 |th) < 0)| {..if (|
|000043c0| 69 73 61 74 74 79 28 73 | 6f 63 6b 74 29 29 20 7b |isatty(s|ockt)) {|
|000043d0| 0a 09 20 20 20 20 72 65 | 74 75 72 6e 20 28 22 73 |.. re|turn ("s|
|000043e0| 74 64 69 6e 22 29 3b 0a | 09 7d 20 65 6c 73 65 20 |tdin");.|.} else |
|000043f0| 7b 0a 09 20 20 20 20 73 | 79 73 6c 6f 67 28 4c 4f |{.. s|yslog(LO|
|00004400| 47 5f 45 52 52 2c 20 22 | 67 65 74 70 65 65 72 6e |G_ERR, "|getpeern|
|00004410| 61 6d 65 3a 20 25 6d 22 | 29 3b 0a 09 20 20 20 20 |ame: %m"|);.. |
|00004420| 72 65 74 75 72 6e 20 28 | 30 29 3b 0a 09 7d 0a 20 |return (|0);..}. |
|00004430| 20 20 20 7d 0a 20 20 20 | 20 69 66 20 28 73 61 2e | }. | if (sa.|
|00004440| 73 61 5f 66 61 6d 69 6c | 79 20 21 3d 20 41 46 5f |sa_famil|y != AF_|
|00004450| 49 4e 45 54 29 20 7b 0a | 09 73 79 73 6c 6f 67 28 |INET) {.|.syslog(|
|00004460| 4c 4f 47 5f 45 52 52 2c | 20 22 75 6e 6b 6e 6f 77 |LOG_ERR,| "unknow|
|00004470| 6e 20 61 64 64 72 65 73 | 73 20 66 61 6d 69 6c 79 |n addres|s family|
|00004480| 20 25 6c 64 22 2c 20 28 | 6c 6f 6e 67 29 20 73 61 | %ld", (|long) sa|
|00004490| 2e 73 61 5f 66 61 6d 69 | 6c 79 29 3b 0a 09 72 65 |.sa_fami|ly);..re|
|000044a0| 74 75 72 6e 20 28 30 29 | 3b 0a 20 20 20 20 7d 0a |turn (0)|;. }.|
|000044b0| 20 20 20 20 2f 2a 20 4c | 6f 6f 6b 20 75 70 20 74 | /* L|ook up t|
|000044c0| 68 65 20 72 65 6d 6f 74 | 65 20 68 6f 73 74 20 6e |he remot|e host n|
|000044d0| 61 6d 65 2e 20 55 73 65 | 20 69 74 73 20 61 64 64 |ame. Use| its add|
|000044e0| 72 65 73 73 20 69 66 20 | 6e 61 6d 65 20 6c 6f 6f |ress if |name loo|
|000044f0| 6b 75 70 20 66 61 69 6c | 73 2e 20 2a 2f 0a 0a 20 |kup fail|s. */.. |
|00004500| 20 20 20 69 66 20 28 28 | 68 70 20 3d 20 67 65 74 | if ((|hp = get|
|00004510| 68 6f 73 74 62 79 61 64 | 64 72 28 28 63 68 61 72 |hostbyad|dr((char|
|00004520| 20 2a 29 20 26 73 69 6e | 2d 3e 73 69 6e 5f 61 64 | *) &sin|->sin_ad|
|00004530| 64 72 2e 73 5f 61 64 64 | 72 2c 0a 09 09 09 20 20 |dr.s_add|r,.... |
|00004540| 20 20 73 69 7a 65 6f 66 | 28 73 69 6e 2d 3e 73 69 | sizeof|(sin->si|
|00004550| 6e 5f 61 64 64 72 2e 73 | 5f 61 64 64 72 29 2c 0a |n_addr.s|_addr),.|
|00004560| 09 09 09 20 20 20 20 41 | 46 5f 49 4e 45 54 29 29 |... A|F_INET))|
|00004570| 20 3d 3d 20 30 29 20 7b | 0a 09 72 65 74 75 72 6e | == 0) {|..return|
|00004580| 20 28 69 6e 65 74 5f 6e | 74 6f 61 28 73 69 6e 2d | (inet_n|toa(sin-|
|00004590| 3e 73 69 6e 5f 61 64 64 | 72 29 29 3b 0a 20 20 20 |>sin_add|r));. |
|000045a0| 20 7d 0a 20 20 20 20 2f | 2a 20 53 61 76 65 20 74 | }. /|* Save t|
|000045b0| 68 65 20 68 6f 73 74 20 | 6e 61 6d 65 20 62 65 66 |he host |name bef|
|000045c0| 6f 72 65 20 74 68 65 20 | 67 65 74 68 6f 73 74 62 |ore the |gethostb|
|000045d0| 79 78 78 78 28 29 20 72 | 6f 75 74 69 6e 65 73 20 |yxxx() r|outines |
|000045e0| 63 6c 6f 62 62 65 72 20 | 69 74 2e 20 2a 2f 0a 0a |clobber |it. */..|
|000045f0| 20 20 20 20 28 76 6f 69 | 64 29 20 73 74 72 6e 63 | (voi|d) strnc|
|00004600| 70 79 28 72 65 6d 6f 74 | 65 68 6f 73 74 2c 20 68 |py(remot|ehost, h|
|00004610| 70 2d 3e 68 5f 6e 61 6d | 65 2c 20 73 69 7a 65 6f |p->h_nam|e, sizeo|
|00004620| 66 28 72 65 6d 6f 74 65 | 68 6f 73 74 29 20 2d 20 |f(remote|host) - |
|00004630| 31 29 3b 0a 20 20 20 20 | 72 65 6d 6f 74 65 68 6f |1);. |remoteho|
|00004640| 73 74 5b 73 69 7a 65 6f | 66 28 72 65 6d 6f 74 65 |st[sizeo|f(remote|
|00004650| 68 6f 73 74 29 20 2d 20 | 31 5d 20 3d 20 30 3b 0a |host) - |1] = 0;.|
|00004660| 0a 20 20 20 20 2f 2a 0a | 20 20 20 20 20 2a 20 44 |. /*.| * D|
|00004670| 65 63 69 64 65 20 77 68 | 61 74 20 74 6f 20 64 6f |ecide wh|at to do|
|00004680| 20 69 66 20 74 68 65 20 | 68 6f 73 74 20 6e 61 6d | if the |host nam|
|00004690| 65 20 64 6f 65 73 20 6e | 6f 74 20 6d 61 74 63 68 |e does n|ot match|
|000046a0| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 6f 72 20 | the add|ress or |
|000046b0| 69 66 20 77 65 0a 20 20 | 20 20 20 2a 20 61 72 65 |if we. | * are|
|000046c0| 20 75 6e 61 62 6c 65 20 | 74 6f 20 76 65 72 69 66 | unable |to verif|
|000046d0| 79 20 74 68 61 74 20 74 | 68 65 20 68 6f 73 74 20 |y that t|he host |
|000046e0| 6e 61 6d 65 20 6d 61 74 | 63 68 65 73 20 74 68 65 |name mat|ches the|
|000046f0| 20 61 64 64 72 65 73 73 | 2e 0a 20 20 20 20 20 2a | address|.. *|
|00004700| 2f 0a 0a 20 20 20 20 69 | 66 20 28 6d 61 74 63 68 |/.. i|f (match|
|00004710| 6e 61 6d 65 28 72 65 6d | 6f 74 65 68 6f 73 74 2c |name(rem|otehost,|
|00004720| 20 73 69 6e 29 29 20 7b | 0a 09 72 65 74 75 72 6e | sin)) {|..return|
|00004730| 20 28 72 65 6d 6f 74 65 | 68 6f 73 74 29 3b 0a 20 | (remote|host);. |
|00004740| 20 20 20 7d 20 65 6c 73 | 65 20 7b 0a 23 69 66 64 | } els|e {.#ifd|
|00004750| 65 66 09 50 41 52 41 4e | 4f 49 44 0a 09 65 78 69 |ef.PARAN|OID..exi|
|00004760| 74 28 30 29 3b 0a 23 65 | 6c 73 65 0a 09 72 65 74 |t(0);.#e|lse..ret|
|00004770| 75 72 6e 20 28 69 6e 65 | 74 5f 6e 74 6f 61 28 73 |urn (ine|t_ntoa(s|
|00004780| 69 6e 2d 3e 73 69 6e 5f | 61 64 64 72 29 29 3b 0a |in->sin_|addr));.|
|00004790| 23 65 6e 64 69 66 0a 20 | 20 20 20 7d 0a 7d 0a 0a |#endif. | }.}..|
|000047a0| 2f 2a 20 6d 61 74 63 68 | 6e 61 6d 65 20 2d 20 64 |/* match|name - d|
|000047b0| 65 74 65 72 6d 69 6e 65 | 20 69 66 20 68 6f 73 74 |etermine| if host|
|000047c0| 20 6e 61 6d 65 20 6d 61 | 74 63 68 65 73 20 61 64 | name ma|tches ad|
|000047d0| 64 72 65 73 73 20 2a 2f | 0a 0a 73 74 61 74 69 63 |dress */|..static|
|000047e0| 20 69 6e 74 20 6d 61 74 | 63 68 6e 61 6d 65 28 72 | int mat|chname(r|
|000047f0| 65 6d 6f 74 65 68 6f 73 | 74 2c 20 73 69 6e 29 0a |emotehos|t, sin).|
|00004800| 63 68 61 72 20 20 20 2a | 72 65 6d 6f 74 65 68 6f |char *|remoteho|
|00004810| 73 74 3b 0a 73 74 72 75 | 63 74 20 73 6f 63 6b 61 |st;.stru|ct socka|
|00004820| 64 64 72 5f 69 6e 20 2a | 73 69 6e 3b 0a 7b 0a 20 |ddr_in *|sin;.{. |
|00004830| 20 20 20 73 74 72 75 63 | 74 20 68 6f 73 74 65 6e | struc|t hosten|
|00004840| 74 20 2a 68 70 3b 0a 20 | 20 20 20 69 6e 74 20 20 |t *hp;. | int |
|00004850| 20 20 20 69 3b 0a 0a 20 | 20 20 20 69 66 20 28 28 | i;.. | if ((|
|00004860| 68 70 20 3d 20 67 65 74 | 68 6f 73 74 62 79 6e 61 |hp = get|hostbyna|
|00004870| 6d 65 28 72 65 6d 6f 74 | 65 68 6f 73 74 29 29 20 |me(remot|ehost)) |
|00004880| 3d 3d 20 30 29 20 7b 0a | 0a 09 2f 2a 0a 09 20 2a |== 0) {.|../*.. *|
|00004890| 20 55 6e 61 62 6c 65 20 | 74 6f 20 76 65 72 69 66 | Unable |to verif|
|000048a0| 79 20 74 68 61 74 20 74 | 68 65 20 68 6f 73 74 20 |y that t|he host |
|000048b0| 6e 61 6d 65 20 6d 61 74 | 63 68 65 73 20 74 68 65 |name mat|ches the|
|000048c0| 20 61 64 64 72 65 73 73 | 2e 20 54 68 69 73 20 6d | address|. This m|
|000048d0| 61 79 20 62 65 0a 09 20 | 2a 20 61 20 74 72 61 6e |ay be.. |* a tran|
|000048e0| 73 69 65 6e 74 20 70 72 | 6f 62 6c 65 6d 20 6f 72 |sient pr|oblem or|
|000048f0| 20 61 20 62 6f 74 63 68 | 65 64 20 6e 61 6d 65 20 | a botch|ed name |
|00004900| 73 65 72 76 65 72 20 73 | 65 74 75 70 2e 0a 09 20 |server s|etup... |
|00004910| 2a 2f 0a 0a 09 73 79 73 | 6c 6f 67 28 4c 4f 47 5f |*/...sys|log(LOG_|
|00004920| 45 52 52 2c 20 22 67 65 | 74 68 6f 73 74 62 79 6e |ERR, "ge|thostbyn|
|00004930| 61 6d 65 28 25 73 29 3a | 20 6c 6f 6f 6b 75 70 20 |ame(%s):| lookup |
|00004940| 66 61 69 6c 75 72 65 22 | 2c 20 72 65 6d 6f 74 65 |failure"|, remote|
|00004950| 68 6f 73 74 29 3b 0a 09 | 72 65 74 75 72 6e 20 28 |host);..|return (|
|00004960| 42 41 44 29 3b 0a 20 20 | 20 20 7d 20 65 6c 73 65 |BAD);. | } else|
|00004970| 20 7b 0a 0a 09 2f 2a 20 | 4c 6f 6f 6b 20 75 70 20 | {.../* |Look up |
|00004980| 74 68 65 20 68 6f 73 74 | 20 61 64 64 72 65 73 73 |the host| address|
|00004990| 20 69 6e 20 74 68 65 20 | 61 64 64 72 65 73 73 20 | in the |address |
|000049a0| 6c 69 73 74 20 77 65 20 | 6a 75 73 74 20 67 6f 74 |list we |just got|
|000049b0| 2e 20 2a 2f 0a 0a 09 66 | 6f 72 20 28 69 20 3d 20 |. */...f|or (i = |
|000049c0| 30 3b 20 68 70 2d 3e 68 | 5f 61 64 64 72 5f 6c 69 |0; hp->h|_addr_li|
|000049d0| 73 74 5b 69 5d 3b 20 69 | 2b 2b 29 20 7b 0a 09 20 |st[i]; i|++) {.. |
|000049e0| 20 20 20 69 66 20 28 6d | 65 6d 63 6d 70 28 68 70 | if (m|emcmp(hp|
|000049f0| 2d 3e 68 5f 61 64 64 72 | 5f 6c 69 73 74 5b 69 5d |->h_addr|_list[i]|
|00004a00| 2c 20 28 63 61 64 64 72 | 5f 74 29 20 26 20 73 69 |, (caddr|_t) & si|
|00004a10| 6e 2d 3e 73 69 6e 5f 61 | 64 64 72 2c 0a 09 09 20 |n->sin_a|ddr,... |
|00004a20| 20 20 20 20 20 20 73 69 | 7a 65 6f 66 28 73 69 6e | si|zeof(sin|
|00004a30| 2d 3e 73 69 6e 5f 61 64 | 64 72 29 29 20 3d 3d 20 |->sin_ad|dr)) == |
|00004a40| 30 29 0a 09 09 72 65 74 | 75 72 6e 20 28 47 4f 4f |0)...ret|urn (GOO|
|00004a50| 44 29 3b 0a 09 7d 0a 0a | 09 2f 2a 0a 09 20 2a 20 |D);..}..|./*.. * |
|00004a60| 54 68 65 20 68 6f 73 74 | 20 6e 61 6d 65 20 64 6f |The host| name do|
|00004a70| 65 73 20 6e 6f 74 20 6d | 61 70 20 74 6f 20 74 68 |es not m|ap to th|
|00004a80| 65 20 68 6f 73 74 20 61 | 64 64 72 65 73 73 2e 20 |e host a|ddress. |
|00004a90| 50 65 72 68 61 70 73 20 | 73 6f 6d 65 6f 6e 65 0a |Perhaps |someone.|
|00004aa0| 09 20 2a 20 68 61 73 20 | 63 6f 6d 70 72 6f 6d 69 |. * has |compromi|
|00004ab0| 73 65 64 20 61 20 6e 61 | 6d 65 20 73 65 72 76 65 |sed a na|me serve|
|00004ac0| 72 2e 20 4d 6f 72 65 20 | 6c 69 6b 65 6c 79 20 73 |r. More |likely s|
|00004ad0| 6f 6d 65 6f 6e 65 20 62 | 6f 74 63 68 65 64 20 69 |omeone b|otched i|
|00004ae0| 74 2c 20 62 75 74 0a 09 | 20 2a 20 74 68 61 74 20 |t, but..| * that |
|00004af0| 63 6f 75 6c 64 20 62 65 | 20 64 61 6e 67 65 72 6f |could be| dangero|
|00004b00| 75 73 2c 20 74 6f 6f 2e | 0a 09 20 2a 2f 0a 0a 09 |us, too.|.. */...|
|00004b10| 73 79 73 6c 6f 67 28 4c | 4f 47 5f 45 52 52 2c 20 |syslog(L|OG_ERR, |
|00004b20| 22 68 6f 73 74 20 6e 61 | 6d 65 2f 61 64 64 72 65 |"host na|me/addre|
|00004b30| 73 73 20 6d 69 73 6d 61 | 74 63 68 3a 20 25 73 20 |ss misma|tch: %s |
|00004b40| 21 3d 20 25 73 22 2c 0a | 09 20 20 20 20 20 20 20 |!= %s",.|. |
|00004b50| 69 6e 65 74 5f 6e 74 6f | 61 28 73 69 6e 2d 3e 73 |inet_nto|a(sin->s|
|00004b60| 69 6e 5f 61 64 64 72 29 | 2c 20 68 70 2d 3e 68 5f |in_addr)|, hp->h_|
|00004b70| 6e 61 6d 65 29 3b 0a 09 | 72 65 74 75 72 6e 20 28 |name);..|return (|
|00004b80| 42 41 44 29 3b 0a 20 20 | 20 20 7d 0a 7d 0a 2e 20 |BAD);. | }.}.. |
|00004b90| 54 68 61 74 20 69 73 2c | 20 6f 6e 65 20 63 6f 70 |That is,| one cop|
|00004ba0| 79 20 6f 66 20 74 68 65 | 20 74 63 70 64 20 66 72 |y of the| tcpd fr|
|00004bb0| 6f 6e 74 20 65 6e 64 20 | 66 6f 72 20 65 61 63 68 |ont end |for each|
|00004bc0| 0a 73 65 72 76 69 63 65 | 20 74 68 61 74 20 79 6f |.service| that yo|
|00004bd0| 75 20 77 61 6e 74 20 74 | 6f 20 6d 6f 6e 69 74 6f |u want t|o monito|
|00004be0| 72 2e 0a 0a 55 6c 74 72 | 69 78 20 6f 6e 6c 79 3a |r...Ultr|ix only:|
|00004bf0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|00004c00| 68 6f 73 74 73 5f 61 63 | 63 65 73 73 2e 35 00 00 |hosts_ac|cess.5..|
|00004c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 31 33 |.... 6|00 . 13|
|00004c70| 31 31 20 00 20 20 20 34 | 31 36 20 00 20 20 20 20 |11 . 4|16 . |
|00004c80| 20 20 20 37 34 37 35 20 | 20 35 30 33 35 37 30 30 | 7475 | 5035700|
|00004c90| 33 34 31 20 20 20 36 37 | 31 37 00 20 00 00 00 00 |341 67|17. ....|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 2e 54 48 20 48 4f 53 54 | 53 5f 41 43 43 45 53 53 |.TH HOST|S_ACCESS|
|00004e10| 20 35 0a 2e 61 64 0a 2e | 66 69 0a 2e 53 48 20 4e | 5..ad..|fi..SH N|
|00004e20| 41 4d 45 0a 68 6f 73 74 | 73 5f 61 63 63 65 73 73 |AME.host|s_access|
|00004e30| 20 5c 2d 20 68 6f 73 74 | 20 61 63 63 65 73 73 20 | \- host| access |
|00004e40| 63 6f 6e 74 72 6f 6c 20 | 66 69 6c 65 73 0a 2e 53 |control |files..S|
|00004e50| 48 20 44 45 53 43 52 49 | 50 54 49 4f 4e 0a 2e 61 |H DESCRI|PTION..a|
|00004e60| 64 0a 2e 66 69 0a 54 68 | 69 73 20 6d 61 6e 75 61 |d..fi.Th|is manua|
|00004e70| 6c 20 70 61 67 65 20 64 | 65 73 63 72 69 62 65 73 |l page d|escribes|
|00004e80| 20 61 20 73 69 6d 70 6c | 65 2c 20 62 75 74 20 65 | a simpl|e, but e|
|00004e90| 66 66 65 63 74 69 76 65 | 2c 20 61 63 63 65 73 73 |ffective|, access|
|00004ea0| 20 63 6f 6e 74 72 6f 6c | 0a 66 61 63 69 6c 69 74 | control|.facilit|
|00004eb0| 79 20 74 68 61 74 20 69 | 73 20 62 61 73 65 64 20 |y that i|s based |
|00004ec0| 6f 6e 20 68 6f 73 74 20 | 28 6f 72 20 64 6f 6d 61 |on host |(or doma|
|00004ed0| 69 6e 29 20 6e 61 6d 65 | 73 2c 20 6e 65 74 67 72 |in) name|s, netgr|
|00004ee0| 6f 75 70 73 2c 20 69 6e | 74 65 72 6e 65 74 0a 61 |oups, in|ternet.a|
|00004ef0| 64 64 72 65 73 73 65 73 | 20 28 6f 72 20 6e 65 74 |ddresses| (or net|
|00004f00| 77 6f 72 6b 20 6e 75 6d | 62 65 72 73 29 20 61 6e |work num|bers) an|
|00004f10| 64 20 6f 6e 20 6e 65 74 | 77 6f 72 6b 20 64 61 65 |d on net|work dae|
|00004f20| 6d 6f 6e 20 70 72 6f 63 | 65 73 73 20 6e 61 6d 65 |mon proc|ess name|
|00004f30| 73 2e 0a 2e 50 50 0a 49 | 6e 20 74 68 65 20 66 6f |s...PP.I|n the fo|
|00004f40| 6c 6c 6f 77 69 6e 67 20 | 74 65 78 74 2c 20 5c 66 |llowing |text, \f|
|00004f50| 49 64 61 65 6d 6f 6e 5c | 66 50 20 69 73 20 74 68 |Idaemon\|fP is th|
|00004f60| 65 20 74 68 65 20 70 72 | 6f 63 65 73 73 20 6e 61 |e the pr|ocess na|
|00004f70| 6d 65 20 28 61 72 67 76 | 5b 30 5d 0a 76 61 6c 75 |me (argv|[0].valu|
|00004f80| 65 29 20 6f 66 20 61 20 | 6e 65 74 77 6f 72 6b 20 |e) of a |network |
|00004f90| 64 61 65 6d 6f 6e 20 70 | 72 6f 63 65 73 73 2c 20 |daemon p|rocess, |
|00004fa0| 61 6e 64 20 5c 66 49 63 | 6c 69 65 6e 74 5c 66 50 |and \fIc|lient\fP|
|00004fb0| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 72 0a | is the |name or.|
|00004fc0| 69 6e 74 65 72 6e 65 74 | 20 61 64 64 72 65 73 73 |internet| address|
|00004fd0| 20 6f 66 20 61 20 68 6f | 73 74 2e 0a 2e 49 50 20 | of a ho|st...IP |
|00004fe0| 6f 0a 41 63 63 65 73 73 | 20 77 69 6c 6c 20 62 65 |o.Access| will be|
|00004ff0| 20 67 72 61 6e 74 65 64 | 20 69 66 20 61 20 28 64 | granted| if a (d|
|00005000| 61 65 6d 6f 6e 2c 63 6c | 69 65 6e 74 29 20 70 61 |aemon,cl|ient) pa|
|00005010| 69 72 20 69 73 20 6d 61 | 74 63 68 65 64 20 62 79 |ir is ma|tched by|
|00005020| 20 61 6e 0a 65 6e 74 72 | 79 20 69 6e 20 74 68 65 | an.entr|y in the|
|00005030| 20 5c 66 49 2f 65 74 63 | 2f 68 6f 73 74 73 2e 61 | \fI/etc|/hosts.a|
|00005040| 6c 6c 6f 77 5c 66 50 20 | 66 69 6c 65 2e 0a 2e 49 |llow\fP |file...I|
|00005050| 50 20 6f 0a 49 66 20 74 | 68 65 20 70 72 65 76 69 |P o.If t|he previ|
|00005060| 6f 75 73 20 74 65 73 74 | 20 66 61 69 6c 73 20 28 |ous test| fails (|
|00005070| 70 65 72 68 61 70 73 20 | 62 65 63 61 75 73 65 20 |perhaps |because |
|00005080| 74 68 65 20 5c 66 49 68 | 6f 73 74 73 2e 61 6c 6c |the \fIh|osts.all|
|00005090| 6f 77 5c 66 50 20 66 69 | 6c 65 0a 64 6f 65 73 20 |ow\fP fi|le.does |
|000050a0| 6e 6f 74 20 65 78 69 73 | 74 29 2c 20 61 63 63 65 |not exis|t), acce|
|000050b0| 73 73 20 77 69 6c 6c 20 | 62 65 20 64 65 6e 69 65 |ss will |be denie|
|000050c0| 64 20 69 66 20 61 20 28 | 64 61 65 6d 6f 6e 2c 63 |d if a (|daemon,c|
|000050d0| 6c 69 65 6e 74 29 20 70 | 61 69 72 20 69 73 0a 6d |lient) p|air is.m|
|000050e0| 61 74 63 68 65 64 20 62 | 79 20 61 6e 20 65 6e 74 |atched b|y an ent|
|000050f0| 72 79 20 69 6e 20 74 68 | 65 20 5c 66 49 2f 65 74 |ry in th|e \fI/et|
|00005100| 63 2f 68 6f 73 74 73 2e | 64 65 6e 79 5c 66 50 20 |c/hosts.|deny\fP |
|00005110| 66 69 6c 65 2e 0a 2e 49 | 50 20 6f 0a 49 66 20 74 |file...I|P o.If t|
|00005120| 68 65 20 70 72 65 76 69 | 6f 75 73 20 74 65 73 74 |he previ|ous test|
|00005130| 20 66 61 69 6c 73 20 28 | 70 65 72 68 61 70 73 20 | fails (|perhaps |
|00005140| 62 65 63 61 75 73 65 20 | 74 68 65 20 5c 66 49 68 |because |the \fIh|
|00005150| 6f 73 74 73 2e 64 65 6e | 79 5c 66 50 20 66 69 6c |osts.den|y\fP fil|
|00005160| 65 0a 64 6f 65 73 20 6e | 6f 74 20 65 78 69 73 74 |e.does n|ot exist|
|00005170| 29 2c 20 61 63 63 65 73 | 73 20 77 69 6c 6c 20 62 |), acces|s will b|
|00005180| 65 20 67 72 61 6e 74 65 | 64 2e 0a 2e 50 50 0a 41 |e grante|d...PP.A|
|00005190| 20 6e 6f 6e 2d 65 78 69 | 73 74 69 6e 67 20 61 63 | non-exi|sting ac|
|000051a0| 63 65 73 73 20 63 6f 6e | 74 72 6f 6c 20 66 69 6c |cess con|trol fil|
|000051b0| 65 20 69 73 20 74 72 65 | 61 74 65 64 20 61 73 20 |e is tre|ated as |
|000051c0| 69 66 20 69 74 20 77 65 | 72 65 20 61 6e 20 65 6d |if it we|re an em|
|000051d0| 70 74 79 0a 66 69 6c 65 | 2e 20 54 68 75 73 2c 20 |pty.file|. Thus, |
|000051e0| 61 63 63 65 73 73 20 63 | 6f 6e 74 72 6f 6c 20 63 |access c|ontrol c|
|000051f0| 61 6e 20 62 65 20 74 75 | 72 6e 65 64 20 6f 66 66 |an be tu|rned off|
|00005200| 20 62 79 20 70 72 6f 76 | 69 64 69 6e 67 20 6e 6f | by prov|iding no|
|00005210| 20 61 63 63 65 73 73 0a | 63 6f 6e 74 72 6f 6c 20 | access.|control |
|00005220| 66 69 6c 65 73 2e 0a 2e | 50 50 0a 54 68 65 20 66 |files...|PP.The f|
|00005230| 6f 72 6d 61 74 20 6f 66 | 20 74 68 65 20 61 63 63 |ormat of| the acc|
|00005240| 65 73 73 20 63 6f 6e 74 | 72 6f 6c 20 66 69 6c 65 |ess cont|rol file|
|00005250| 73 20 69 73 20 61 73 20 | 66 6f 6c 6c 6f 77 73 2e |s is as |follows.|
|00005260| 0a 2e 49 50 20 6f 0a 4c | 69 6e 65 73 20 74 68 61 |..IP o.L|ines tha|
|00005270| 74 20 62 65 67 69 6e 20 | 77 69 74 68 20 61 20 60 |t begin |with a `|
|00005280| 23 27 20 63 68 61 72 61 | 63 74 65 72 20 61 72 65 |#' chara|cter are|
|00005290| 20 69 67 6e 6f 72 65 64 | 2e 0a 2e 49 50 20 6f 0a | ignored|...IP o.|
|000052a0| 4f 74 68 65 72 20 6c 69 | 6e 65 73 20 73 68 6f 75 |Other li|nes shou|
|000052b0| 6c 64 20 68 61 76 65 20 | 74 68 65 20 66 6f 72 6d |ld have |the form|
|000052c0| 61 74 3a 0a 2e 73 70 0a | 2e 74 69 20 2b 35 0a 64 |at:..sp.|.ti +5.d|
|000052d0| 61 65 6d 6f 6e 5f 6c 69 | 73 74 20 3a 20 63 6c 69 |aemon_li|st : cli|
|000052e0| 65 6e 74 5f 6c 69 73 74 | 0a 2e 4c 50 0a 5c 66 49 |ent_list|..LP.\fI|
|000052f0| 64 61 65 6d 6f 6e 5f 6c | 69 73 74 5c 66 50 20 69 |daemon_l|ist\fP i|
|00005300| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 6f 6e 65 20 |s a list| of one |
|00005310| 6f 72 20 6d 6f 72 65 20 | 64 61 65 6d 6f 6e 20 70 |or more |daemon p|
|00005320| 72 6f 63 65 73 73 20 6e | 61 6d 65 73 0a 28 61 72 |rocess n|ames.(ar|
|00005330| 67 76 5b 30 5d 20 76 61 | 6c 75 65 73 29 3b 20 5c |gv[0] va|lues); \|
|00005340| 66 49 63 6c 69 65 6e 74 | 5f 6c 69 73 74 5c 66 50 |fIclient|_list\fP|
|00005350| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 20 6f 6e | is a li|st of on|
|00005360| 65 20 6f 72 20 6d 6f 72 | 65 20 68 6f 73 74 0a 6e |e or mor|e host.n|
|00005370| 61 6d 65 73 2c 20 64 6f | 6d 61 69 6e 20 6e 61 6d |ames, do|main nam|
|00005380| 65 73 2c 20 6e 65 74 67 | 72 6f 75 70 73 2c 20 69 |es, netg|roups, i|
|00005390| 6e 74 65 72 6e 65 74 20 | 61 64 64 72 65 73 73 65 |nternet |addresse|
|000053a0| 73 20 6f 72 20 69 6e 74 | 65 72 6e 65 74 20 6e 65 |s or int|ernet ne|
|000053b0| 74 77 6f 72 6b 0a 6e 75 | 6d 62 65 72 73 2e 20 20 |twork.nu|mbers. |
|000053c0| 4c 69 73 74 20 65 6c 65 | 6d 65 6e 74 73 20 73 68 |List ele|ments sh|
|000053d0| 6f 75 6c 64 20 62 65 20 | 73 65 70 61 72 61 74 65 |ould be |separate|
|000053e0| 64 20 62 79 20 62 6c 61 | 6e 6b 73 20 6f 72 20 63 |d by bla|nks or c|
|000053f0| 6f 6d 6d 61 73 2e 20 20 | 57 69 74 68 0a 74 68 65 |ommas. |With.the|
|00005400| 20 65 78 63 65 70 74 69 | 6f 6e 20 6f 66 20 6e 65 | excepti|on of ne|
|00005410| 74 67 72 6f 75 70 20 6c | 6f 6f 6b 75 70 73 2c 20 |tgroup l|ookups, |
|00005420| 61 6c 6c 20 61 63 63 65 | 73 73 20 63 6f 6e 74 72 |all acce|ss contr|
|00005430| 6f 6c 20 63 6f 64 65 20 | 69 73 20 63 61 73 65 0a |ol code |is case.|
|00005440| 69 6e 73 65 6e 73 69 74 | 69 76 65 2e 0a 2e 50 50 |insensit|ive...PP|
|00005450| 0a 43 6c 69 65 6e 74 5f | 6c 69 73 74 20 66 69 65 |.Client_|list fie|
|00005460| 6c 64 73 20 74 68 61 74 | 20 73 70 65 63 69 66 79 |lds that| specify|
|00005470| 20 61 20 5c 66 49 64 6f | 6d 61 69 6e 20 6e 61 6d | a \fIdo|main nam|
|00005480| 65 5c 66 50 20 73 68 6f | 75 6c 64 20 62 65 67 69 |e\fP sho|uld begi|
|00005490| 6e 20 77 69 74 68 20 61 | 0a 60 2e 27 20 63 68 61 |n with a|.`.' cha|
|000054a0| 72 61 63 74 65 72 20 28 | 73 65 65 20 65 78 61 6d |racter (|see exam|
|000054b0| 70 6c 65 20 62 65 6c 6f | 77 29 2e 20 49 6e 74 65 |ple belo|w). Inte|
|000054c0| 72 6e 65 74 20 5c 66 49 | 6e 65 74 77 6f 72 6b 20 |rnet \fI|network |
|000054d0| 6e 75 6d 62 65 72 73 5c | 66 50 20 28 61 73 0a 6f |numbers\|fP (as.o|
|000054e0| 70 70 6f 73 65 64 20 74 | 6f 20 69 6e 74 65 72 6e |pposed t|o intern|
|000054f0| 65 74 20 5c 66 49 68 6f | 73 74 20 6e 75 6d 62 65 |et \fIho|st numbe|
|00005500| 72 73 5c 66 50 29 20 73 | 68 6f 75 6c 64 20 62 65 |rs\fP) s|hould be|
|00005510| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 77 69 74 68 | termina|ted with|
|00005520| 20 61 20 60 2e 27 0a 63 | 68 61 72 61 63 74 65 72 | a `.'.c|haracter|
|00005530| 2e 20 41 20 5c 66 49 6e | 65 74 67 72 6f 75 70 5c |. A \fIn|etgroup\|
|00005540| 66 50 20 6e 61 6d 65 20 | 73 68 6f 75 6c 64 20 62 |fP name |should b|
|00005550| 65 67 69 6e 20 77 69 74 | 68 20 74 68 65 20 60 40 |egin wit|h the `@|
|00005560| 27 20 63 68 61 72 61 63 | 74 65 72 2e 0a 4e 65 74 |' charac|ter..Net|
|00005570| 67 72 6f 75 70 73 20 61 | 72 65 20 75 73 75 61 6c |groups a|re usual|
|00005580| 6c 79 20 73 75 70 70 6f | 72 74 65 64 20 6f 6e 20 |ly suppo|rted on |
|00005590| 73 79 73 74 65 6d 73 20 | 77 69 74 68 20 4e 49 53 |systems |with NIS|
|000055a0| 20 28 66 6f 72 6d 65 72 | 6c 79 20 59 50 29 0a 64 | (former|ly YP).d|
|000055b0| 61 74 61 20 62 61 73 65 | 73 2e 0a 2e 50 50 0a 53 |ata base|s...PP.S|
|000055c0| 70 65 63 69 61 6c 20 6d | 65 61 6e 69 6e 67 20 69 |pecial m|eaning i|
|000055d0| 73 20 67 69 76 65 6e 20 | 74 6f 20 74 68 65 20 6d |s given |to the m|
|000055e0| 61 67 69 63 20 74 6f 6b | 65 6e 20 5c 66 49 41 4c |agic tok|en \fIAL|
|000055f0| 4c 5c 66 50 2e 20 20 49 | 66 20 69 74 20 61 70 70 |L\fP. I|f it app|
|00005600| 65 61 72 73 0a 69 6e 20 | 74 68 65 20 5c 66 49 64 |ears.in |the \fId|
|00005610| 61 65 6d 6f 6e 5f 6c 69 | 73 74 5c 66 50 20 70 61 |aemon_li|st\fP pa|
|00005620| 72 74 20 6f 66 20 61 20 | 6c 69 6e 65 2c 20 74 68 |rt of a |line, th|
|00005630| 69 73 20 74 6f 6b 65 6e | 20 6d 61 74 63 68 65 73 |is token| matches|
|00005640| 20 61 6c 6c 20 6e 65 74 | 77 6f 72 6b 0a 64 61 65 | all net|work.dae|
|00005650| 6d 6f 6e 20 70 72 6f 63 | 65 73 73 20 6e 61 6d 65 |mon proc|ess name|
|00005660| 73 2e 20 20 49 66 20 74 | 68 65 20 6d 61 67 69 63 |s. If t|he magic|
|00005670| 20 74 6f 6b 65 6e 20 61 | 70 70 65 61 72 73 20 69 | token a|ppears i|
|00005680| 6e 20 74 68 65 0a 5c 66 | 49 63 6c 69 65 6e 74 5f |n the.\f|Iclient_|
|00005690| 6c 69 73 74 5c 66 50 20 | 70 61 72 74 20 6f 66 20 |list\fP |part of |
|000056a0| 61 20 6c 69 6e 65 2c 20 | 69 74 20 6d 61 74 63 68 |a line, |it match|
|000056b0| 65 73 20 61 6c 6c 20 63 | 6c 69 65 6e 74 73 2e 0a |es all c|lients..|
|000056c0| 2e 50 50 0a 41 6e 6f 74 | 68 65 72 20 74 6f 6b 65 |.PP.Anot|her toke|
|000056d0| 6e 20 74 68 61 74 20 72 | 65 63 65 69 76 65 73 20 |n that r|eceives |
|000056e0| 73 70 65 63 69 61 6c 20 | 74 72 65 61 74 6d 65 6e |special |treatmen|
|000056f0| 74 20 69 73 20 5c 66 49 | 4c 4f 43 41 4c 5c 66 50 |t is \fI|LOCAL\fP|
|00005700| 2e 20 49 74 0a 6d 61 74 | 63 68 65 73 20 61 6e 79 |. It.mat|ches any|
|00005710| 20 73 74 72 69 6e 67 20 | 74 68 61 74 20 64 6f 65 | string |that doe|
|00005720| 73 20 6e 6f 74 20 63 6f | 6e 74 61 69 6e 20 61 20 |s not co|ntain a |
|00005730| 64 6f 74 20 63 68 61 72 | 61 63 74 65 72 2e 0a 2e |dot char|acter...|
|00005740| 53 48 20 45 58 41 4d 50 | 4c 45 53 0a 54 68 65 20 |SH EXAMP|LES.The |
|00005750| 66 6f 6c 6c 6f 77 69 6e | 67 20 65 78 61 6d 70 6c |followin|g exampl|
|00005760| 65 20 72 65 73 74 72 69 | 63 74 73 20 61 6c 6c 20 |e restri|cts all |
|00005770| 73 65 72 76 69 63 65 73 | 20 74 6f 20 68 6f 73 74 |services| to host|
|00005780| 73 20 77 69 74 68 69 6e | 20 74 68 65 20 6c 6f 63 |s within| the loc|
|00005790| 61 6c 0a 64 6f 6d 61 69 | 6e 20 28 6e 6f 20 60 2e |al.domai|n (no `.|
|000057a0| 27 20 63 68 61 72 61 63 | 74 65 72 20 69 6e 20 74 |' charac|ter in t|
|000057b0| 68 65 20 68 6f 73 74 20 | 6e 61 6d 65 29 2c 20 5c |he host |name), \|
|000057c0| 66 49 68 6f 73 74 2e 64 | 6f 6d 2e 61 69 6e 5c 66 |fIhost.d|om.ain\f|
|000057d0| 50 2c 20 61 6e 64 20 61 | 6c 6c 0a 68 6f 73 74 73 |P, and a|ll.hosts|
|000057e0| 20 62 65 6c 6f 77 20 74 | 68 65 20 5c 66 49 2e 73 | below t|he \fI.s|
|000057f0| 6f 6d 65 2e 64 6f 6d 61 | 69 6e 5c 66 50 3a 0a 2e |ome.doma|in\fP:..|
|00005800| 50 50 0a 2f 65 74 63 2f | 68 6f 73 74 73 2e 61 6c |PP./etc/|hosts.al|
|00005810| 6c 6f 77 3a 0a 2e 69 6e | 20 2b 35 0a 41 4c 4c 3a |low:..in| +5.ALL:|
|00005820| 20 4c 4f 43 41 4c 2c 20 | 68 6f 73 74 2e 64 6f 6d | LOCAL, |host.dom|
|00005830| 2e 61 69 6e 2c 20 2e 73 | 6f 6d 65 2e 64 6f 6d 61 |.ain, .s|ome.doma|
|00005840| 69 6e 0a 2e 50 50 0a 2f | 65 74 63 2f 68 6f 73 74 |in..PP./|etc/host|
|00005850| 73 2e 64 65 6e 79 3a 0a | 2e 69 6e 20 2b 35 0a 41 |s.deny:.|.in +5.A|
|00005860| 4c 4c 3a 20 41 4c 4c 0a | 2e 50 50 0a 41 20 73 69 |LL: ALL.|.PP.A si|
|00005870| 6d 69 6c 61 72 20 65 78 | 61 6d 70 6c 65 2c 20 62 |milar ex|ample, b|
|00005880| 75 74 20 75 73 69 6e 67 | 20 6e 65 74 67 72 6f 75 |ut using| netgrou|
|00005890| 70 20 6e 61 6d 65 73 3a | 0a 2e 50 50 0a 2f 65 74 |p names:|..PP./et|
|000058a0| 63 2f 68 6f 73 74 73 2e | 61 6c 6c 6f 77 3a 0a 2e |c/hosts.|allow:..|
|000058b0| 69 6e 20 2b 35 0a 41 4c | 4c 3a 20 40 6e 65 74 67 |in +5.AL|L: @netg|
|000058c0| 72 6f 75 70 6e 61 6d 65 | 0a 2e 50 50 0a 2f 65 74 |roupname|..PP./et|
|000058d0| 63 2f 68 6f 73 74 73 2e | 64 65 6e 79 3a 0a 2e 69 |c/hosts.|deny:..i|
|000058e0| 6e 20 2b 35 0a 41 4c 4c | 3a 20 41 4c 4c 0a 2e 50 |n +5.ALL|: ALL..P|
|000058f0| 50 0a 49 6e 20 6f 72 64 | 65 72 20 74 6f 20 64 65 |P.In ord|er to de|
|00005900| 6e 79 20 73 6f 6d 65 20 | 68 6f 73 74 73 20 61 6c |ny some |hosts al|
|00005910| 6c 20 73 65 72 76 69 63 | 65 73 2c 20 65 78 63 65 |l servic|es, exce|
|00005920| 70 74 20 66 74 70 3a 0a | 2e 50 50 0a 2f 65 74 63 |pt ftp:.|.PP./etc|
|00005930| 2f 68 6f 73 74 73 2e 61 | 6c 6c 6f 77 3a 0a 2e 69 |/hosts.a|llow:..i|
|00005940| 6e 20 2b 35 0a 69 6e 2e | 66 74 70 64 3a 20 41 4c |n +5.in.|ftpd: AL|
|00005950| 4c 0a 2e 50 50 0a 2f 65 | 74 63 2f 68 6f 73 74 73 |L..PP./e|tc/hosts|
|00005960| 2e 64 65 6e 79 0a 2e 69 | 6e 20 2b 35 0a 41 4c 4c |.deny..i|n +5.ALL|
|00005970| 3a 20 73 6f 6d 65 2e 68 | 6f 73 74 2e 6e 61 6d 65 |: some.h|ost.name|
|00005980| 2c 20 2e 73 6f 6d 65 2e | 64 6f 6d 61 69 6e 0a 2e |, .some.|domain..|
|00005990| 53 48 20 44 49 41 47 4e | 4f 53 54 49 43 53 0a 2e |SH DIAGN|OSTICS..|
|000059a0| 61 64 0a 2e 66 69 0a 41 | 20 73 79 73 6c 6f 67 20 |ad..fi.A| syslog |
|000059b0| 72 65 63 6f 72 64 20 69 | 73 20 70 72 6f 64 75 63 |record i|s produc|
|000059c0| 65 64 20 77 68 65 6e 20 | 61 20 63 6f 6e 6e 65 63 |ed when |a connec|
|000059d0| 74 69 6f 6e 20 69 73 20 | 72 65 66 75 73 65 64 3b |tion is |refused;|
|000059e0| 20 77 68 65 6e 20 61 20 | 73 79 6e 74 61 78 0a 65 | when a |syntax.e|
|000059f0| 72 72 6f 72 20 69 73 20 | 66 6f 75 6e 64 20 69 6e |rror is |found in|
|00005a00| 20 61 20 68 6f 73 74 20 | 61 63 63 65 73 73 20 63 | a host |access c|
|00005a10| 6f 6e 74 72 6f 6c 20 66 | 69 6c 65 3b 20 77 68 65 |ontrol f|ile; whe|
|00005a20| 6e 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |n the le|ngth of |
|00005a30| 61 20 6c 69 6e 65 0a 69 | 6e 20 61 20 68 6f 73 74 |a line.i|n a host|
|00005a40| 20 61 63 63 65 73 73 20 | 63 6f 6e 74 72 6f 6c 20 | access |control |
|00005a50| 66 69 6c 65 20 65 78 63 | 65 65 64 73 20 74 68 65 |file exc|eeds the|
|00005a60| 20 73 74 64 69 6f 28 33 | 29 20 62 75 66 66 65 72 | stdio(3|) buffer|
|00005a70| 20 73 69 7a 65 2e 0a 2e | 53 48 20 46 49 4c 45 53 | size...|SH FILES|
|00005a80| 0a 2e 6e 61 0a 2e 6e 66 | 0a 2f 65 74 63 2f 68 6f |..na..nf|./etc/ho|
|00005a90| 73 74 73 2e 61 6c 6c 6f | 77 2c 20 28 64 61 65 6d |sts.allo|w, (daem|
|00005aa0| 6f 6e 2c 63 6c 69 65 6e | 74 29 20 70 61 69 72 73 |on,clien|t) pairs|
|00005ab0| 20 74 68 61 74 20 61 72 | 65 20 67 72 61 6e 74 65 | that ar|e grante|
|00005ac0| 64 20 61 63 63 65 73 73 | 2e 0a 2f 65 74 63 2f 68 |d access|../etc/h|
|00005ad0| 6f 73 74 73 2e 64 65 6e | 79 2c 20 28 64 61 65 6d |osts.den|y, (daem|
|00005ae0| 6f 6e 2c 63 6c 69 65 6e | 74 29 20 70 61 69 72 73 |on,clien|t) pairs|
|00005af0| 20 74 68 61 74 20 61 72 | 65 20 64 65 6e 69 65 64 | that ar|e denied|
|00005b00| 20 61 63 63 65 73 73 2e | 0a 2e 53 48 20 42 55 47 | access.|..SH BUG|
|00005b10| 53 0a 2e 61 64 0a 2e 66 | 69 0a 49 66 20 74 68 65 |S..ad..f|i.If the|
|00005b20| 72 65 20 61 72 65 20 70 | 72 6f 62 6c 65 6d 73 20 |re are p|roblems |
|00005b30| 77 69 74 68 20 61 20 6e | 61 6d 65 20 73 65 72 76 |with a n|ame serv|
|00005b40| 65 72 2c 20 74 68 65 20 | 61 63 63 65 73 73 20 63 |er, the |access c|
|00005b50| 6f 6e 74 72 6f 6c 20 73 | 6f 66 74 77 61 72 65 0a |ontrol s|oftware.|
|00005b60| 77 69 6c 6c 20 75 73 65 | 20 61 20 68 6f 73 74 5c |will use| a host\|
|00005b70| 27 73 20 61 64 64 72 65 | 73 73 20 69 6e 73 74 65 |'s addre|ss inste|
|00005b80| 61 64 20 6f 66 20 69 74 | 73 20 6e 61 6d 65 2e 20 |ad of it|s name. |
|00005b90| 20 41 20 77 6f 72 6b 61 | 72 6f 75 6e 64 20 69 73 | A worka|round is|
|00005ba0| 20 74 6f 0a 61 6c 73 6f | 20 6c 69 73 74 20 69 6e | to.also| list in|
|00005bb0| 74 65 72 6e 65 74 20 61 | 64 64 72 65 73 73 65 73 |ternet a|ddresses|
|00005bc0| 20 61 6e 64 20 6e 65 74 | 77 6f 72 6b 20 6e 75 6d | and net|work num|
|00005bd0| 62 65 72 73 20 69 6e 20 | 74 68 65 20 61 63 63 65 |bers in |the acce|
|00005be0| 73 73 2d 63 6f 6e 74 72 | 6f 6c 0a 66 69 6c 65 73 |ss-contr|ol.files|
|00005bf0| 2e 0a 2e 50 50 0a 44 6f | 6d 61 69 6e 20 6e 61 6d |...PP.Do|main nam|
|00005c00| 65 20 73 65 72 76 65 72 | 20 6c 6f 6f 6b 75 70 73 |e server| lookups|
|00005c10| 20 61 72 65 20 63 61 73 | 65 20 69 6e 73 65 6e 73 | are cas|e insens|
|00005c20| 69 74 69 76 65 3b 20 4e | 49 53 20 28 66 6f 72 6d |itive; N|IS (form|
|00005c30| 65 72 6c 79 20 59 50 29 | 0a 6e 65 74 67 72 6f 75 |erly YP)|.netgrou|
|00005c40| 70 20 6c 6f 6f 6b 75 70 | 73 20 61 72 65 20 63 61 |p lookup|s are ca|
|00005c50| 73 65 20 73 65 6e 73 69 | 74 69 76 65 2e 0a 2e 53 |se sensi|tive...S|
|00005c60| 48 20 41 55 54 48 4f 52 | 0a 2e 6e 61 0a 2e 6e 66 |H AUTHOR|..na..nf|
|00005c70| 0a 57 69 65 74 73 65 20 | 56 65 6e 65 6d 61 0a 45 |.Wietse |Venema.E|
|00005c80| 69 6e 64 68 6f 76 65 6e | 20 55 6e 69 76 65 72 73 |indhoven| Univers|
|00005c90| 69 74 79 20 6f 66 20 54 | 65 63 68 6e 6f 6c 6f 67 |ity of T|echnolog|
|00005ca0| 79 0a 44 65 70 61 72 74 | 6d 65 6e 74 20 6f 66 20 |y.Depart|ment of |
|00005cb0| 4d 61 74 68 65 6d 61 74 | 69 63 73 20 61 6e 64 20 |Mathemat|ics and |
|00005cc0| 43 6f 6d 70 75 74 65 72 | 20 53 63 69 65 6e 63 65 |Computer| Science|
|00005cd0| 0a 44 65 6e 20 44 6f 6c | 65 63 68 20 32 2c 20 50 |.Den Dol|ech 2, P|
|00005ce0| 2e 4f 2e 20 42 6f 78 20 | 35 31 33 2c 20 35 36 30 |.O. Box |513, 560|
|00005cf0| 30 20 4d 42 20 45 69 6e | 64 68 6f 76 65 6e 2c 20 |0 MB Ein|dhoven, |
|00005d00| 54 68 65 20 4e 65 74 68 | 65 72 6c 61 6e 64 73 0a |The Neth|erlands.|
|00005d10| 5c 22 20 40 28 23 29 20 | 68 6f 73 74 73 5f 61 63 |\" @(#) |hosts_ac|
|00005d20| 63 65 73 73 2e 35 20 31 | 2e 37 20 39 31 2f 30 35 |cess.5 1|.7 91/05|
|00005d30| 2f 32 30 20 31 33 3a 32 | 38 3a 30 38 0a 70 6c 65 |/20 13:2|8:08.ple|
|00005d40| 6d 65 6e 74 61 74 69 6f | 6e 73 20 73 68 6f 75 6c |mentatio|ns shoul|
|00005d50| 64 0a 6e 6f 74 20 64 69 | 66 66 65 72 20 6d 75 63 |d.not di|ffer muc|
|00005d60| 68 29 2e 20 53 69 6d 69 | 6c 61 72 20 63 68 61 6e |h). Simi|lar chan|
|00005d70| 67 65 73 20 77 69 6c 6c | 20 62 65 20 6e 65 65 64 |ges will| be need|
|00005d80| 65 64 20 66 6f 72 20 74 | 68 65 20 6f 74 68 65 72 |ed for t|he other|
|00005d90| 20 73 65 72 76 69 63 65 | 73 0a 74 68 61 74 20 61 | service|s.that a|
|00005da0| 72 65 20 74 6f 20 62 65 | 20 63 6f 76 65 72 65 64 |re to be| covered|
|00005db0| 20 62 79 20 74 68 65 20 | 74 63 70 64 20 66 72 6f | by the |tcpd fro|
|00005dc0| 6e 74 2d 65 6e 64 20 70 | 72 6f 67 72 61 6d 2e 0a |nt-end p|rogram..|
|00005dd0| 0a 41 70 6f 6c 6c 6f 20 | 55 4e 49 58 20 75 73 65 |.Apollo |UNIX use|
|00005de0| 72 73 20 77 69 6c 6c 20 | 77 61 6e 74 20 74 6f 20 |rs will |want to |
|00005df0| 69 6e 73 74 61 6c 6c 20 | 74 68 65 20 66 72 6f 6e |install |the fron|
|00005e00| 68 6f 73 74 73 5f 61 63 | 63 65 73 73 2e 63 00 00 |hosts_ac|cess.c..|
|00005e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e60| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 31 33 |.... 6|00 . 13|
|00005e70| 31 31 20 00 20 20 20 34 | 31 36 20 00 20 20 20 20 |11 . 4|16 . |
|00005e80| 20 20 31 31 36 30 30 20 | 20 35 30 33 35 37 30 30 | 11600 | 5035700|
|00005e90| 33 34 30 20 20 20 36 37 | 37 35 00 20 00 00 00 00 |340 67|75. ....|
|00005ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006000| 23 69 66 64 65 66 20 48 | 4f 53 54 53 5f 41 43 43 |#ifdef H|OSTS_ACC|
|00006010| 45 53 53 0a 0a 20 2f 2a | 0a 20 20 2a 20 54 68 69 |ESS.. /*|. * Thi|
|00006020| 73 20 6d 6f 64 75 6c 65 | 20 69 6d 70 6c 65 6d 65 |s module| impleme|
|00006030| 6e 74 73 20 61 20 73 69 | 6d 70 6c 65 20 62 75 74 |nts a si|mple but|
|00006040| 20 65 66 66 65 63 74 69 | 76 65 20 66 6f 72 6d 20 | effecti|ve form |
|00006050| 6f 66 20 61 63 63 65 73 | 73 20 63 6f 6e 74 72 6f |of acces|s contro|
|00006060| 6c 0a 20 20 2a 20 62 61 | 73 65 64 20 6f 6e 20 68 |l. * ba|sed on h|
|00006070| 6f 73 74 20 28 6f 72 20 | 64 6f 6d 61 69 6e 29 20 |ost (or |domain) |
|00006080| 6e 61 6d 65 73 2c 20 6e | 65 74 67 72 6f 75 70 2c |names, n|etgroup,|
|00006090| 20 69 6e 74 65 72 6e 65 | 74 20 61 64 64 72 65 73 | interne|t addres|
|000060a0| 73 65 73 20 28 6f 72 20 | 6e 65 74 77 6f 72 6b 0a |ses (or |network.|
|000060b0| 20 20 2a 20 6e 75 6d 62 | 65 72 73 29 20 61 6e 64 | * numb|ers) and|
|000060c0| 20 64 61 65 6d 6f 6e 20 | 70 72 6f 63 65 73 73 20 | daemon |process |
|000060d0| 6e 61 6d 65 73 2c 20 77 | 69 74 68 20 77 69 6c 64 |names, w|ith wild|
|000060e0| 20 63 61 72 64 20 73 75 | 70 70 6f 72 74 2e 0a 20 | card su|pport.. |
|000060f0| 20 2a 20 0a 20 20 2a 20 | 44 69 61 67 6e 6f 73 74 | * . * |Diagnost|
|00006100| 69 63 73 20 61 72 65 20 | 72 65 70 6f 72 74 65 64 |ics are |reported|
|00006110| 20 74 68 72 6f 75 67 68 | 20 73 79 73 6c 6f 67 28 | through| syslog(|
|00006120| 33 29 2e 0a 20 20 2a 20 | 0a 20 20 2a 20 43 6f 6d |3).. * |. * Com|
|00006130| 70 69 6c 65 20 77 69 74 | 68 20 2d 44 48 4f 53 54 |pile wit|h -DHOST|
|00006140| 53 5f 41 43 43 45 53 53 | 20 69 6e 20 6f 72 64 65 |S_ACCESS| in orde|
|00006150| 72 20 74 6f 20 65 6e 61 | 62 6c 65 20 61 63 63 65 |r to ena|ble acce|
|00006160| 73 73 20 63 6f 6e 74 72 | 6f 6c 2e 20 53 65 65 20 |ss contr|ol. See |
|00006170| 74 68 65 0a 20 20 2a 20 | 68 6f 73 74 73 5f 61 63 |the. * |hosts_ac|
|00006180| 63 65 73 73 28 35 29 20 | 6d 61 6e 75 61 6c 20 70 |cess(5) |manual p|
|00006190| 61 67 65 20 66 6f 72 20 | 64 65 74 61 69 6c 73 2e |age for |details.|
|000061a0| 0a 20 20 2a 20 0a 20 20 | 2a 20 43 6f 6d 70 69 6c |. * . |* Compil|
|000061b0| 65 20 77 69 74 68 20 2d | 44 4e 45 54 47 52 4f 55 |e with -|DNETGROU|
|000061c0| 50 20 69 66 20 79 6f 75 | 72 20 6c 69 62 72 61 72 |P if you|r librar|
|000061d0| 79 20 70 72 6f 76 69 64 | 65 73 20 73 75 70 70 6f |y provid|es suppo|
|000061e0| 72 74 20 66 6f 72 20 6e | 65 74 67 72 6f 75 70 73 |rt for n|etgroups|
|000061f0| 2e 0a 20 20 2a 20 0a 20 | 20 2a 20 41 75 74 68 6f |.. * . | * Autho|
|00006200| 72 3a 20 57 69 65 74 73 | 65 20 56 65 6e 65 6d 61 |r: Wiets|e Venema|
|00006210| 2c 20 45 69 6e 64 68 6f | 76 65 6e 20 55 6e 69 76 |, Eindho|ven Univ|
|00006220| 65 72 73 69 74 79 20 6f | 66 20 54 65 63 68 6e 6f |ersity o|f Techno|
|00006230| 6c 6f 67 79 2c 20 54 68 | 65 20 4e 65 74 68 65 72 |logy, Th|e Nether|
|00006240| 6c 61 6e 64 73 2e 0a 20 | 20 2a 2f 0a 0a 23 69 66 |lands.. | */..#if|
|00006250| 6e 64 65 66 20 6c 69 6e | 74 0a 73 74 61 74 69 63 |ndef lin|t.static|
|00006260| 20 63 68 61 72 20 73 63 | 63 73 69 64 5b 5d 20 3d | char sc|csid[] =|
|00006270| 20 22 40 28 23 29 20 68 | 6f 73 74 73 5f 61 63 63 | "@(#) h|osts_acc|
|00006280| 65 73 73 2e 63 20 31 2e | 35 20 39 31 2f 30 35 2f |ess.c 1.|5 91/05/|
|00006290| 32 30 20 31 33 3a 32 38 | 3a 30 33 22 3b 0a 23 65 |20 13:28|:03";.#e|
|000062a0| 6e 64 69 66 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ndif..#i|nclude <|
|000062b0| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|000062c0| 65 20 3c 73 79 73 6c 6f | 67 2e 68 3e 0a 23 69 6e |e <syslo|g.h>.#in|
|000062d0| 63 6c 75 64 65 20 3c 63 | 74 79 70 65 2e 68 3e 0a |clude <c|type.h>.|
|000062e0| 0a 65 78 74 65 72 6e 20 | 63 68 61 72 20 2a 66 67 |.extern |char *fg|
|000062f0| 65 74 73 28 29 3b 0a 65 | 78 74 65 72 6e 20 63 68 |ets();.e|xtern ch|
|00006300| 61 72 20 2a 73 74 72 63 | 68 72 28 29 3b 0a 65 78 |ar *strc|hr();.ex|
|00006310| 74 65 72 6e 20 63 68 61 | 72 20 2a 73 74 72 74 6f |tern cha|r *strto|
|00006320| 6b 28 29 3b 0a 65 78 74 | 65 72 6e 20 76 6f 69 64 |k();.ext|ern void|
|00006330| 20 65 78 69 74 28 29 3b | 0a 0a 20 2f 2a 20 50 61 | exit();|.. /* Pa|
|00006340| 74 68 20 6e 61 6d 65 73 | 20 6f 66 20 74 68 65 20 |th names| of the |
|00006350| 61 63 63 65 73 73 20 63 | 6f 6e 74 72 6f 6c 20 66 |access c|ontrol f|
|00006360| 69 6c 65 73 2e 20 2a 2f | 0a 0a 23 64 65 66 69 6e |iles. */|..#defin|
|00006370| 65 20 48 4f 53 54 53 5f | 41 4c 4c 4f 57 09 22 2f |e HOSTS_|ALLOW."/|
|00006380| 65 74 63 2f 68 6f 73 74 | 73 2e 61 6c 6c 6f 77 22 |etc/host|s.allow"|
|00006390| 0a 23 64 65 66 69 6e 65 | 20 48 4f 53 54 53 5f 44 |.#define| HOSTS_D|
|000063a0| 45 4e 59 09 22 2f 65 74 | 63 2f 68 6f 73 74 73 2e |ENY."/et|c/hosts.|
|000063b0| 64 65 6e 79 22 0a 0a 20 | 2f 2a 20 44 65 6c 69 6d |deny".. |/* Delim|
|000063c0| 69 74 65 72 73 20 66 6f | 72 20 6c 69 73 74 73 20 |iters fo|r lists |
|000063d0| 6f 66 20 64 61 65 6d 6f | 6e 73 20 6f 72 20 63 6c |of daemo|ns or cl|
|000063e0| 69 65 6e 74 73 2e 20 2a | 2f 0a 0a 73 74 61 74 69 |ients. *|/..stati|
|000063f0| 63 20 63 68 61 72 20 73 | 65 70 5b 5d 20 3d 20 22 |c char s|ep[] = "|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.